我所在的大学为我们提供了一个必须使用的文档模板,用于我们的报告。我想在 Latex 中重新创建它,这样更容易使用公式、表格和引用进行编辑,但我发现首页真的很难复制。侧面有一段文字写着:“Universidade Federal de Itajubá”,它是横向的,我想不出添加的方法。
您可以在此处看到模板的样子:
关于如何做到这一点,有什么想法或技巧可以复制该页面吗?
这是我目前所拥有的,但我无法像在模板上那样将文本放在框中
\documentclass[12pt]{article}
\usepackage[portuguese]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{titling}
\title{GASS-WEB: a web server for identifying enzyme active sites based on genetic algorithms}
\author{João Pedro Areias de Moraes}
\begin{document}
\includegraphics[scale=0.35]{republica.png}
\begin{center}
Universidade federal de Itajubá \\
\textit{Campus Itabira}
\end{center}
\begin{wrapfigure}{l}{0.3\textwidth}
\includegraphics[width=0.2\linewidth]{path4742.png}
\end{wrapfigure}
\thetitle
\end{document}
答案1
这是一个非常奇怪的解决方案。这是一个快速破解。你必须进行大量打磨,才能获得那些漂亮的字体和阴影(也许 TikZ 可以提供帮助,我不知道!)。
\documentclass[12pt]{article}
\usepackage[portuguese]{babel}
\usepackage[utf8x]{luainputenc}
\usepackage[demo]{graphicx}
\usepackage{color}
\makeatletter
\def\@instituto{}
\def\@titulo{}
\def\@aluno{}
\def\@matricula{}
\def\@curso{}
\def\@orientador{}
\def\@fase{}
\def\@vigencia{}
\newcommand{\instituto}[1]{\def\@instituto{#1}}
\newcommand{\titulo}[1]{\def\@titulo{#1}}
\newcommand{\aluno}[1]{\def\@aluno{#1}}
\newcommand{\matricula}[1]{\def\@matricula{#1}}
\newcommand{\curso}[1]{\def\@curso{#1}}
\newcommand{\orientador}[1]{\def\@orientador{#1}}
\newcommand{\fase}[1]{\def\@fase{#1}}
\newcommand{\vigencial}[1]{\def\@vigencial{#1}}
% Define the unreadable color in the lower box
\definecolor{nonexistent}{RGB}{222,222,222}
\newcommand{\maketitulo}{%
\setlength{\fboxrule}{1.5mm}
% begin a new page
\clearpage\thispagestyle{empty}
% insert the Logo
\noindent%
\includegraphics[width=2cm,height=2cm]{ulogo}%
% insert the instituto name
\raisebox{0.8cm}{\Large\textbf{(\textcolor{red}{\@instituto})}}\\[2ex]%
% insert the rotated text
\parbox[b][0.6\textheight][t]{2cm}{%
\centering%
\rotatebox{90}{\huge%
\bfseries{Universidade Federal de Itajub\'a}}}%
\hfill%
\parbox[b][0.6\textheight][t]{0.8\textwidth}{%
% \parbox{0.7\textwidth}{%
\centering%
\fbox{%
\parbox{0.7\linewidth}{\centering\LARGE\scshape{\@titulo}}}\\%
\vspace{3cm}%
EDITE ESTA LINHA LOREM IPSUM DOLORET\\%
\vspace{0.8cm}%
REALTARIO PARCIVAL (OUFINAL)\\%
UNIFEI\\%
(lorem ipsum dolores amet)\\%
\vspace{1cm}
\fbox{%
\parbox{0.7\textwidth}{\flushleft\textcolor{nonexistent}{%
Aluno: \@aluno\\%
Matricula: \@matricula\\%
Curso: \@curso\\%
Orientador:\ \@orientador\\[3ex]%
Fase/Periodo: \@fase\\[3ex]%
Vigencial: \@vigencial}}}
}
}
\titulo{My Title}
\instituto{Some Other Institute}
\vigencial{I Have No Idea}
\fase{The Phase Of The Moon}
\orientador{AC/DC}
\curso{Not Getting Blinded By This}
\begin{document}
\maketitulo
\end{document}
这就是结果(我已经警告过你了,这很尴尬!)
答案2
至于标题周围的框:
\setlength{\fboxrule}{2mm}
\fbox{\parbox{0.4\textwidth}{\centering Titulo de Projecto}}
摆弄 fboxrule,使其适应给定的规则宽度。
也许你想从中发出一个命令:
\newcommand{\titlebox}[1]{%
\setlength{\fboxrule}{2mm}%
\centering%
\fbox{%
\scshape{}\parbox{0.4\textwidth}{\centering\LARGE\scshape{#1}}}}
总共:
\documentclass[12pt]{article}
\usepackage[portuguese]{babel}
\usepackage[utf8x]{luainputenc}
\newcommand{\titlebox}[1]{%
\setlength{\fboxrule}{2mm}%
\centering%
\fbox{%
\scshape{}\parbox{0.4\textwidth}{\centering\LARGE\scshape{#1}}}}
\begin{document}
% This is the titlebox
\titlebox{Titulo de Projecto}
\end{document}