微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

TexMaker 中的列表格式不一致

如何解决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}

给你这个(摘录): output

一个更简单(但很老套)的解决方案是在较短的项目中插入不可见的字母以匹配较长的项目,从而强制使用相同的格式:

    \item[GUI] Graphical User Interface
    \item[IO\phantom{XYZ}] Input/Output
    \item[OS\phantom{XYZ}] Operating System

更好的是,使用为您进行格式设置和簿记的包来组织您的首字母缩略词,例如acro

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?