如何解决TexMaker 中的列表格式不一致
列表中任何项目名称(在括号中)具有
\documentclass[11pt]{article}
%% Layout Alteration
%% --------------------------
\usepackage{
enumitem,% indented items for glossary
framed,% nice Boxes; used in Supervisor's Approval
geometry,% change the margins for specific PAGES
}
\setlist[description]{style=nextline}
\geometry{ % specify page size options for (geometry)
a4paper,% paper size
margin=1in,% specified independently with hmargin vmargin
}
% Hides the formatting for the glossary
\newenvironment{Glossary}
{
\begin{description}
}
{
\end{description}
}
\begin{document}
\begin{Glossary}
\item[Uvic] University of Victoria
\item[2-FSK] 2 tone Frequency Shift Keying
\item[Core blocks] The pre installed modules and blocks in Gnuradio
\item[CSA] Canadian Space Agency
\item[CubeSat] A miniaturized space satellite for research
\item[DSP] Digital Signal Processor
\item[FM] Frequency Modulation
\item[FPGA] Field-Programmable Gate Array
\item[FSK] Frequency Shift Keying
\item[GFSK] Gaussian Frequency Shift Keying
\item[GNU Radio] A DSP and SDR creation software
\item[GPIO] General Purpose Input/Output
\item[GRC] GNU Radio Companion,GUI interface for GNU Radio
\item[gr\_modtool] A script that simplifies the process of creating OOT Modules
\item[GUI] Graphical User Interface
\item[IO] Input/Output
\item[OS] Operating System
\item[OOT Module] Out-of-tree Module
\item[PDU] Protocol Data Unit,A PMT that is a pair of a dictionary and a uniform vector type
\item[PMT] polymorphic Type,An opaque data type designed as generic containers of data that can be safely passed between blocks in Gnuradio
\end{Glossary}
\end{document}
"FM","IO,and "OS" names all have their descriptions on the same line
解决方法
有几个选项。例如:使用新命令自己格式化项目。然后你可以自己决定间距。
\newcommand{\myitem}[2]{
\item[] \textbf{#1} \newline \hspace*{.5cm} #2}
\begin{document}
\begin{Glossary}
\myitem{Uvic} University of Victoria
\myitem{2-FSK} 2 tone Frequency Shift Keying
\myitem{Core blocks} The pre installed modules and blocks in Gnuradio
\myitem{CSA} Canadian Space Agency
\myitem{CubeSat} A miniaturized space satellite for research
\myitem{DSP} Digital Signal Processor
\myitem{FM} Frequency Modulation
\myitem{FPGA} Field-Programmable Gate Array
\myitem{FSK} Frequency Shift Keying
\myitem{GFSK} Gaussian Frequency Shift Keying
\myitem{GNU Radio} A DSP and SDR creation software
\myitem{GPIO} General Purpose Input/Output
\myitem{GRC} GNU Radio Companion,GUI interface for GNU Radio
\myitem{gr\_modtool} A script that simplifies the process of creating OOT Modules
\myitem{GUI} Graphical User Interface
\myitem{IO} Input/Output
\myitem{OS} Operating System
\myitem{OOT Module} Out-of-tree Module
\myitem{PDU} Protocol Data Unit,A PMT that is a pair of a dictionary and a uniform vector type
\myitem{PMT} Polymorphic Type,An opaque data type designed as generic containers of data that can be safely passed between blocks in Gnuradio
\end{Glossary}
一个更简单(但很老套)的解决方案是在较短的项目中插入不可见的字母以匹配较长的项目,从而强制使用相同的格式:
\item[GUI] Graphical User Interface
\item[IO\phantom{XYZ}] Input/Output
\item[OS\phantom{XYZ}] Operating System
更好的是,使用为您进行格式设置和簿记的包来组织您的首字母缩略词,例如acro。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。