第一次建立我自己的 LaTeX 文檔

第一次建立我自己的 LaTeX 文檔

我對乳膠並不是非常陌生,因為上學期我經常使用它來撰寫報告,但我主要只是使用我們教授提供的預定義模板,所以我真的不需要學習如何做所有事情。現在我需要建立一個非常簡單的文檔,希望大家能夠幫忙!

這是我們在校園各處張貼的一張紙,為我們主辦當月的研討會做廣告。我在背景中附上了“浮水印”圖像的副本。我需要做的是在標題下方定義一個頁面區域,我們可以在其中輸入某些資訊。我還附上了這些「海報」完成後的樣子。您會注意到,一張是每月海報,一張是單張海報。理想情況下我希望在一個 Latex 文件中包含所有必要的信息,並讓它為每個演示者生成“單個”海報,如果這有意義的話!每月海報單張海報,(由於我的聲譽評分,無法發佈水印,但水印是背景+文字“疾病的細胞與分子基礎研討會系列”

更新:我已經實施了基督徒解決方案(謝謝!)。幾個後續問題!如何更改/更改表格環境以遵循相同的邊距規則?其次,我嘗試遵循其他人的乳膠程式碼範例來實現您在“bottompar”環境下在文件最底部看到的文字。目標是讓該文字固定在頁面底部,並且僅在頁面的前半部分(因此它不會覆蓋醫學院徽標)。我認為最困難的部分是我在本文檔中放入的任何內容都需要最多一頁長。最後,我可以定義文字可以填滿的紙張區域嗎?例如,頁面頂部顯然不能有文本,因為它用於標題。頁面的底部不能有文字,因為它是設計+標誌。我可以只定義中間區域來包含文本,這樣 \vspace*{\fill} 之類的東西就可以工作嗎?

\documentclass[12pt]{article}
\usepackage{xcolor}
\usepackage{background}
\usepackage{geometry}
%\usepackage[T1]{fontenc}
%\usepackage{uarial}
\usepackage{csquotes}
\usepackage{array}
\usepackage{tabularx}

\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newenvironment{bottompar}{\par\vspace*{\fill}}{\clearpage}

\renewcommand{\familydefault}{\sfdefault}
\backgroundsetup{
scale=1,
angle=0,
opacity=1,  %% adjust
contents={\includegraphics[width=\paperwidth,height=\paperheight]{cmbd_watermark}}
}

\definecolor{redA}{rgb}{0.6, 0.2, 0}
\definecolor{aqua}{rgb}{0.0, 0.48, 0.65}

%My Room Definitions
\newcommand{\lb}{\linebreak}
\newcommand{\dom}{Domenici Auditorium, Room 1220}
\newcommand{\hssb}{HSSB, Room 105}
\newcommand{\fitzthree}{Fitz Hall, Room 309}
\newcommand{\fitztwo}{Fitz Hall, Room 203}
\newcommand{\talkdate}[1]{\huge\textcolor{aqua}{\textbf{\underline{#1}}}}
\newcommand{\talkauthor}[1]{%
 \color{redA}#1%
}
\newcommand{\talktitle}[1]{%
  \Large{\textcolor{redA}{\enquote{\textit{\textbf{#1}}}}}%  
}
\newcommand{\hostedby}[1]{%
  \normalsize{\textcolor{black}Hosted by: #1}%
}

\newcommand{\timeandlocation}[2]{%
  \textcolor{aqua}{\normalsize Time/Location: #1,}
  \textcolor{aqua}{\normalsize #2}
}

\newcommand{\talkdata}[6]{%
  \begingroup
  \renewcommand{\arraystretch}{0.6}
  \huge
  \begin{tabularx}{0.7\linewidth}{@{}C{0.7\linewidth}@{}}
    \talkdate{#1} \tabularnewline
    \talkauthor{#2} \tabularnewline
    \talktitle{#3} \tabularnewline
    \hostedby{#4} \tabularnewline
    \timeandlocation{#5}{#6}
    \tabularnewline
  \end{tabularx}
  \endgroup
}

\begin{document}
\pagestyle{empty}
\setlength{\parindent}{0em}
\newgeometry{top=5.0cm,left=1cm,right=1cm,bottom=1cm}

\begin{center}

  \talkdata{January 27, 2017}{%
    \textbf{Farrah Kheradmand M.D.} \lb
    \large \color{redA} Professor, \lb
    \large \color{redA} Baylor College of Medicine}{Cigarette Smoke and DNA Cleavage Promote Lung Inflammation \& Emphysema}{Dr. Xuexian Yang}{12:00 PM - 1:00 PM}{\hssb}
    \vspace{.75cm}

     \talkdata{February 10, 2017}{%
    \textbf{Dr. Carolyn Coyne} \lb
    \large \color{redA}  Associate Professor, Microbiology and Molecular Genetics \lb
    \large \color{redA} University of Pittsburgh School of Medicine}{Antimicrobial signaling at the maternal-fetal interface}{Tione Buranda}{12:00 PM - 1:00 PM}{\fitztwo}
    \vspace{.75cm}

    \talkdata{February 17, 2017}{%
    \textbf{Dr. Mita Das} \lb
    \large \color{redA}  Professor of Pathology, \lb
    \large \color{redA}Burrell College of Osteopathic Medicine}{Role of Adventitial Cells in the Pathophysiology of Pulmonary Hypertension}{ Tom Resta}{12:00 PM - 1:00 PM}{\dom}
    \vspace{.75cm}


\end{center}
\begin{bottompar}
\scriptsize{The Cellular and Molecular Basis of Disease Seminar Series is sponsored by the UNM HSC \lb
School of Medicine, the Office of Research, the Departments of Pathology, Neurosciences,\lb
Molecular Genetics and Microbiology, Biochemistry and Molecular Biology, Cell Biology and \lb
Physiology, Preadtrics, and the Signature Programs.}
\end{bottompar} 
\end{document}

答案1

這是一個可能的啟動器,使用\talkdata帶有 6 個(!)參數的命令,其中包含日期、演講者姓名、標題、主持人、時間和位置(按此順序)。

每個都是在特定tabularx環境中設定的,因此當然可能存在顏色設定問題。

根據您的需求變更顏色/間距。

更複雜的方法是使用鍵值接口,但我現在沒時間。

\documentclass[12pt]{article}
\usepackage{xcolor}
\usepackage{background}
\usepackage{geometry}
\usepackage{csquotes}
\usepackage{array}


%\usepackage{uarial}
\usepackage{tabularx}

\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

\renewcommand{\familydefault}{\sfdefault}
\backgroundsetup{%
  scale=0.5,
  angle=0,
  opacity=0.5,  %% adjust
  contents={\includegraphics[width=\paperwidth,height=\paperheight]{ente}}
}

\definecolor{aqua}{rgb}{0.0, 1.0, 1.0}
\definecolor{cerulean}{rgb}{0.0, 0.48, 0.65}
\definecolor{redA}{rgb}{0.6, 0.2, 0}


\newcommand{\talkdate}[1]{\huge\textcolor{cerulean}{\textbf{\underline{#1}}}}

\newcommand{\talkauthor}[1]{%
 \color{redA}#1%
}
\newcommand{\talktitle}[1]{%
  \textcolor{blue}{\enquote{#1}}%  
}

\newcommand{\hostedby}[1]{%
  \large\bfseries Hosted by: #1%
}

\newcommand{\timeandlocation}[2]{%
  \textcolor{aqua}{\large\bfseries Time/Location: #1} \tabularnewline
  \textcolor{aqua}{\large\bfseries #2}
}


\newcommand{\talkdata}[6]{%
  \begingroup
  \renewcommand{\arraystretch}{0.9}
  \huge
  \begin{tabularx}{0.7\linewidth}{@{}C{0.7\linewidth}@{}}
    \talkdate{#1} \tabularnewline
    \talkauthor{#2} \tabularnewline
    \talktitle{#3} \tabularnewline
    \hostedby{#4} \tabularnewline
    \timeandlocation{#5}{#6}
    \tabularnewline
  \end{tabularx}
  \endgroup
}


\begin{document}
\pagestyle{empty}
\setlength{\parindent}{0em}
\begin{center}

  \talkdata{\today}{%
    \textbf{Jiandie D. Lin, PH.D.} \tabularnewline
    Associate Professor \tabularnewline
    Life Sciences}{Some interesting new ideas}{Some person}{15 pm}{Some place}

  \talkdata{Tomorrow}{%
    \textbf{Jiandie D. Lin, PH.D.} \tabularnewline
    Associate Professor \tabularnewline
    Life Sciences}{Some other interesting new ideas}{Some other person}{16 pm}{Right here!}
\end{center}
\end{document}

在此輸入影像描述

相關內容