有没有更好的方法来引用文本块末尾的内容?

有没有更好的方法来引用文本块末尾的内容?

我遇到一种情况,我想对一段文本末尾的内容进行评论,而不是作为脚注:我正在格式化的 statblock

我按照原作者的做法做了这件事,在 Language: Any 后面加上 *,在 Gailteach 前面加上 *,但我想知道是否有更好、更 LaTeXy 的方式来做这件事,因为从代码上看,这看起来非常...丑陋。它也没有以任何方式将这两点联系在一起,尽管如果建议的解决方案没有内置 Hyperref,我可以使用 Hyperref 手动做到这一点。

以下是我所做工作的 MWE:

%Page layout here
\documentclass[letterpaper, 12pt]{article}
\usepackage[left= 2.2 cm, right=2.2 cm, top = 2.2 cm, bottom = 2.2 cm]{geometry}

%Font stuff here
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}            
\usepackage[]{venturis}

%Goddamn tables.
\usepackage{booktabs}                          %Makes the pretty table based on wikibooks example

%Load last stuff.
\usepackage{hyperref}                          %Adds a PDF index & makes links clickable: LOAD LAST



\begin{document}
{\small
\noindent\textbf{Morph:} Menton\\
\textbf{Skills:} Academics: Linguistics 85, Academics: Neurolinguistics 80, Art: Logograms 50,
Interests: Accents 60, Interests: Dialects 75, Interests: Synthetic Languages 80, Interests:
Xenolinguistics 80, Interfacing 50, Investigation 50, Language: Native Gaelic 95,
Language: Any*, Networking: Firewall 25, Networking: Scientists 25, Profession:
Interpreter 75 Profession: Linguist: 80, Profession: Teacher 60, Profession: Translator 65,
Research 77\\
\textbf{Implants:} Basic Biomods, Basic Mesh Inserts, Cortical Stack, Eidetic Memory, Hyper-Linguist, Math Boost, Multi-tasking, Oracles\\
\textbf{Traits:} Fast Learner, Mental Disorder (Severe phobia of psychosurgery), Neural Damage (Amnesia, Blackouts)\\
*Gailteach knows hundreds of human languages and dialects; common languages (Arabic, English, French, Hindi, Japanese, Mandarin, etc.) have a typical rating of 75; 
uncommon languages 60, and synthetic \& obscure languages (Esperanto, Klingon, Sumerian, \&c.) 50.
}

\end{document}

我确信我希望将其放在 statblock 的末尾,而不是作为脚注,因为这可能不太符合印刷正确性,但可以让游戏管理员在游戏过程中更容易参考。

答案1

我建议帕诺特包。(我还擅自重构了你如何编码你的角色信息,你可以随意忽略它。)

\documentclass[letterpaper, 12pt]{article}
\usepackage[left= 2.2 cm, right=2.2 cm, top = 2.2 cm, bottom = 2.2 cm]{geometry}

%Font stuff here
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[]{venturis}

%Goddamn special notes
\usepackage[
notessf,     % default: roman
% breakwithin, % default: paragraph notes
]{parnotes}

%Goddamn tables.
\usepackage{booktabs}

% etc.
\usepackage[svgnames]{xcolor}

%Load last stuff.
\usepackage{hyperref}

\newcommand{\headfont}{\bfseries\sffamily\color{Maroon}}% <-- whatever you like
\newcommand*{\morph}[1]{{\headfont Morph:} #1}
\newcommand*{\skills}[1]{{\headfont Skills:} #1}
\newcommand*{\implants}[1]{{\headfont Implants:} #1}
\newcommand*{\traits}[1]{{\headfont Traits:} #1}

%% this command assumes each character has exactly the same list of major categories (not sure if this is true...)
\newcommand{\chardesc}[4]{%
  \small\noindent
  \morph{#1}\newline
  \skills{#2}\newline
  \implants{#3}\newline
  \traits{#4}
\par\parnotes}

\begin{document}

\chardesc{Menton}%
{Academics: Linguistics 85, Academics: Neurolinguistics 80, Art:
  Logograms 50, Interests: Accents 60, Interests: Dialects 75,
  Interests: Synthetic Languages 80, Interests: Xenolinguistics 80,
  Interfacing 50, Investigation 50, Language: Native Gaelic 95,
  Language: Any%
  \parnote{Gailteach knows hundreds of human languages and dialects;
    common languages (Arabic, English, French, Hindi, Japanese,
    Mandarin, etc.)  have a typical rating of 75; uncommon languages
    60, and synthetic \& obscure languages (Esperanto, Klingon,
    Sumerian, \&c.) 50.}%
  , Networking: Firewall 25, Networking: Scientists 25, Profession:
  Interpreter 75 Profession: Linguist: 80, Profession: Teacher 60,
  Profession: Translator 65, Research 77%
  \parnote{That is, he hates it, but he knows how to do it.}%
}%
{Basic Biomods, Basic Mesh Inserts, Cortical Stack, Eidetic Memory,
  Hyper-Linguist, Math Boost, Multi-tasking, Oracles}%
{Fast Learner, Mental Disorder (Severe phobia of
  psychosurgery%
  \parnote{And, really, who isn't?}%
  ), Neural Damage
  (Amnesia, Blackouts)}

\bigskip

\chardesc{Menton (without commentary)}%
{Academics: Linguistics 85, Academics: Neurolinguistics 80, Art:
  Logograms 50, Interests: Accents 60, Interests: Dialects 75,
  Interests: Synthetic Languages 80, Interests: Xenolinguistics 80,
  Interfacing 50, Investigation 50, Language: Native Gaelic 95,
  Language: Any, Networking: Firewall 25, Networking: Scientists 25,
  Profession: Interpreter 75 Profession: Linguist: 80, Profession:
  Teacher 60, Profession: Translator 65, Research 77}%
{Basic Biomods, Basic Mesh Inserts, Cortical Stack, Eidetic Memory,
  Hyper-Linguist, Math Boost, Multi-tasking, Oracles}%
{Fast Learner, Mental Disorder (Severe phobia of psychosurgery ),
  Neural Damage (Amnesia, Blackouts)}


\end{document}

答案2

设置事物minipage(基于聊天中的讨论) 也是一个选项,因为minipages 的\footnotes 分组在它们的底部(默认情况下):

在此处输入图片描述

\documentclass[letterpaper, 12pt]{article}
\usepackage[margin=22mm]{geometry}% http://ctan.org/pkg/geometry
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox

%\patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\endminipage}{\unskip}{\vspace*{-.7\baselineskip}\unskip}{}{}
\makeatletter
\renewcommand\@makefntext[1]{% From article.cls
    \parindent 1em%
    \noindent
    \hb@[email protected]{\@makefnmark\hss}#1}%\hb@[email protected]{\hss\@makefnmark}#1}
\newenvironment{statblock}
  {%\renewcommand{\thefootnote}{\@fnsymbol{footnote}}% Footnotes are symbols
  \let\footnoterule\relax% No footnote rule
   \setlength{\footskip}{0pt}\noindent\minipage{\linewidth}\small\strut\ignorespaces}
  {\strut\endminipage}
\makeatother

\begin{document}
{\small
\noindent\textbf{Morph:} Menton\\
\textbf{Skills:} Academics: Linguistics 85, Academics: Neurolinguistics 80, Art: Logograms 50,
Interests: Accents 60, Interests: Dialects 75, Interests: Synthetic Languages 80, Interests:
Xenolinguistics 80, Interfacing 50, Investigation 50, Language: Native Gaelic 95,
Language: Any*, Networking: Firewall 25, Networking: Scientists 25, Profession:
Interpreter 75 Profession: Linguist: 80, Profession: Teacher 60, Profession: Translator 65,
Research 77\\
\textbf{Implants:} Basic Biomods, Basic Mesh Inserts, Cortical Stack, Eidetic Memory, Hyper-Linguist, Math Boost, Multi-tasking, Oracles\\
\textbf{Traits:} Fast Learner, Mental Disorder (Severe phobia of psychosurgery), Neural Damage (Amnesia, Blackouts) \\{}
*Gailteach knows hundreds of human languages and dialects; common languages (Arabic, English, French, Hindi, Japanese, Mandarin, etc.) have a typical rating of 75; 
uncommon languages 60, and synthetic \& obscure languages (Esperanto, Klingon, Sumerian, \&c.) 50.
}

\bigskip

\begin{statblock}
  \textbf{Morph:} Menton \par
  \textbf{Skills:} Academics: Linguistics 85, Academics: Neurolinguistics 80, Art: Logograms 50,
    Interests: Accents 60, Interests: Dialects 75, Interests: Synthetic Languages 80, Interests:
    Xenolinguistics 80, Interfacing 50, Investigation 50, Language: Native Gaelic 95,
    Language: Any\footnote{Gailteach knows hundreds of human languages and dialects; 
      common languages (Arabic, English, French, Hindi, Japanese, Mandarin, etc.) have 
      a typical rating of 75; uncommon languages 60, and synthetic \& obscure languages 
      (Esperanto, Klingon, Sumerian, \&c.) 50.}, Networking: Firewall 25, Networking: 
    Scientists 25, Profession: Interpreter 75 Profession: Linguist: 80, Profession: 
    Teacher 60, Profession: Translator 65, Research 77 \par
  \textbf{Implants:} Basic Biomods, Basic Mesh Inserts, Cortical Stack, Eidetic Memory, 
    Hyper-Linguist, Math Boost, Multi-tasking, Oracles \par
  \textbf{Traits:} Fast Learner, Mental Disorder (Severe phobia of psychosurgery), 
    Neural Damage (Amnesia, Blackouts)
\end{statblock}
\end{document}

定义一个宏来设置“特征标题”也是明智的,因为它允许以后轻松更改。对于行距调整,我建议添加setspace包裹并使用\setstretch(比如说)。

相关内容