약어 용어집이 항목을 일관되게 인쇄하지 않습니다.

약어 용어집이 항목을 일관되게 인쇄하지 않습니다.

Overleaf가 용어집 항목, 특히 두문자어를 인쇄하는 방식의 일관성에 문제가 있습니다. 문서의 부록에 설정하려고 합니다.

컴파일할 때 일부는 약어를 사용하여 온라인으로 인쇄하도록 선택하고 다른 일부는 가상 줄 바꿈을 삽입하고 실제 약어 아래에 인쇄합니다. 아래에 표시되는 영역이 있는 사진을 첨부했습니다.

여기에 이미지 설명을 입력하세요

나는 정의와 그것이 사용되는 페이지를 포함하여 모든 항목이 한 줄에 있도록 그것을 얻으려고 노력하고 있습니다. 나는 명령을 사용해 보았습니다 \setglossarystyle. Altlist를 선택하거나 그룹화할 때 올바르게 컴파일되지만 목록을 선택할 때 협력을 거부합니다. 다른 사람도 비슷한 문제가 있는지 확인하려고 노력했는데, 발견했습니다.이 항목, 작동하도록 시도했지만 운이 없었습니다.

용어집 명령은 부록의 Preamble, Main, Main 파일에서 사용되며, 모두 이 게시물에 첨부된 코드와 함께 용어집도 작성 당시의 모습 그대로 포함했습니다.

전문:

%%%Layout%%%
\documentclass[11pt,a4paper,table,xcdraw]{report}

\usepackage{etoolbox}
\usepackage[a4paper,hmargin=3cm,vmargin=3cm]{geometry}
\usepackage{parskip}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage[T1]{fontenc}
%\usepackage{doi}

%requirements setup
\setlist[description]{style=nextline}



%Macros for SI units
\usepackage[siunitx]{circuitikz}
\let\svqty\qty
\AtBeginDocument{\RenewCommandCopy\qty\SI} 
\usepackage{amsmath}

\makeatletter
\def\ifGm@preamble#1{\@firstofone}
\appto\restoregeometry{%
  \pdfpagewidth=\paperwidth
  \pdfpageheight=\paperheight}
  
\apptocmd\newgeometry{%
  \pdfpagewidth=\paperwidth
  \pdfpageheight=\paperheight}{}{}
\makeatother

\usepackage{matlab-prettifier}

\usepackage{listings}
\lstset{literate=
  {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'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=false,
    tabsize=1,
    breaklines=true,
    breakatwhitespace=false,
    commentstyle=\itshape\color{green!40!black},
    keywordstyle=\bfseries\color{blue},
}
\lstdefinestyle{C}{ %Formatting for code in appendix
    language=C,
    captionpos=b, 
    numbers=left,
    frame=L,
    stepnumber=1,
    showstringspaces=false,
    tabsize=1,
    breaklines=true,
    breakatwhitespace=false,
    commentstyle=\itshape\color{green!40!black},
    keywordstyle=\color{blue},
    stringstyle=\color{orange!70!black},
}

\usepackage[final]{pdfpages}
\usepackage{lscape}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}

\usepackage{fancyhdr}

\fancypagestyle{fancy}{
\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}

\pagestyle{fancy}

\fancyhf{}
\lhead{\small\nouppercase\leftmark}
\rhead{\small\nouppercase\rightmark}
\rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}

\fancypagestyle{plain}{%
  \fancyhf{}%
  \rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}%
  \renewcommand{\headrulewidth}{0pt}% Line at the header invisible
  \renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}

\usepackage{calc}

\setlength{\parindent}{0pt}
\usepackage{lastpage}

%%%Sprog og font%%%
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[sc]{mathpazo}
\linespread{1.05}
\usepackage[T1]{fontenc}
\usepackage{physics}
\let\qty\svqty
%%%Grafik%%%
\usepackage{float}
%\usepackage{xcolor}
%\definecolor{aaublue}{RGB}{33,26,82}% dark blue
\usepackage{graphicx}
\usepackage{caption}
\captionsetup{%
  font=footnotesize,% set font size to footnotesize
  labelfont=bf % bold label (e.g., Figure 3.2) font
}

\usepackage{adjustbox}
\usepackage{array,booktabs}
\usepackage{framed}
\usepackage{lscape}
%%%Matematik%%%
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{siunitx}
\usepackage[framed,amsmath,thmmarks]{ntheorem}
\newenvironment{conditions}
  {\par\vspace{\abovedisplayskip}\noindent\begin{tabular}{>{$}l<{$} @{${}={}$} l}}
  {\end{tabular}\par\vspace{\belowdisplayskip}}
\usepackage{textcomp}

%%%Overskrifter%%%
\usepackage{titlesec}
\titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Huge}
\titleformat{\chapter}{\normalfont\bfseries\huge}{\thechapter}{20pt}{\huge}
\titlespacing*{\chapter}{0pt}{-50pt}{10pt}
\titleformat*{\section}{\normalfont\Large\bfseries}
\titleformat*{\subsection}{\normalfont\large\bfseries}
\titleformat*{\subsubsection}{\normalfont\normalsize\bfseries}

%%%Kommentarer%%%
\usepackage{verbatim} 

%%%Kildehenvisninger%%%
\usepackage{csquotes}
\usepackage[nottoc]{tocbibind}
\usepackage[backend=biber,style=numeric,sortcites,natbib=true,sorting=none,date=iso,seconds=true]{biblatex}
\setcounter{biburllcpenalty}{9000}
\addbibresource{Bib/Kilder.bib}

%%%Appendix og indholdsfortegnelse%%%
\usepackage[toc,page]{appendix}
%\appto\appendix{\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}}
\setcounter{tocdepth}{0}

%Ændrer * til cdot notation
\mathcode`\*="8000
{\catcode`\*\active\gdef*{\cdot}}

%Pakke til SI enheder
\usepackage{siunitx}

%Pakke til glossary
\usepackage[acronym]{glossaries}

%Pakke til .svg figurer
\usepackage{svg}

%Pakke til wrapfigure
\usepackage{wrapfig}

% Enable hyperlinks and insert info into the pdf file
\usepackage[hidelinks]{hyperref}
\hypersetup{%
    pdfpagelabels=true,%
    plainpages=false,%
    pdfauthor={Author(s)},%
    pdftitle={Title},%
    pdfsubject={Subject},%
    bookmarksnumbered=true,%
    colorlinks=false,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=black,% you should probably change this to black before printing
    urlcolor=black,%
    pdfstartview=FitH%
}

%\usepackage{hyperref}

\usepackage{lipsum}


\usepackage{xcolor}

\definecolor{aaublue}{RGB}{33,26,82}% dark blue
\definecolor{mGreen}{rgb}{0,0.6,0}
\definecolor{mGray}{rgb}{0.5,0.5,0.5}
\definecolor{mPurple}{rgb}{0.58,0,0.82}
\definecolor{backgroundColour}{rgb}{0.95,0.95,0.92}

\lstdefinestyle{CStyle}{
    backgroundcolor=\color{backgroundColour},   
    commentstyle=\color{mGreen},
    keywordstyle=\color{magenta},
    numberstyle=\tiny\color{mGray},
    stringstyle=\color{mPurple},
    basicstyle=\footnotesize,
    breaklines=true,             
    breakatwhitespace=false,
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2,
    language=C,
    tabsize=4,
    tabsize=2,
}

기본

 \input{Preamble/Preamble.tex}
\input{Preamble/AAUSynopsis.tex}

\makeatletter
\providecommand\add@text{}
\newcommand\tagaddtext[1]{%
  \gdef\add@text{#1\gdef\add@text{}}}% 
\renewcommand\tagform@[1]{%
  \maketag@@@{\llap{\add@text\quad}(\ignorespaces#1\unskip\@@italiccorr)}%
}
\makeatother

\makeglossaries
\input{Bib/Glossary.tex}

\glsaddall[types=\acronymtype]

\newglossarystyle{custom_acronyms}
{
    \setglossarystyle{long3colheader}%
    \renewcommand*{\glossaryheader}{}%  
    \renewcommand{\glossentry}[2]{%
        \textbf{\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}}
        & \glossentrydesc{##1}
        & ##2
        \tabularnewline}%
}

\begin{document}
\input{Formalia/Forside.tex}
\input{Formalia/Titelblad.tex}
\input{Formalia/Underskrifter.tex}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{3}
\tableofcontents

%Text
\input{Text/01 - Introduction/Introduction.tex}
\input{Text/02 - Problem Analysis/2.0 - Problem Analysis Main.tex}
\input{Text/03 - Requirements/Requirements Main.tex}
\input{Text/04 - Design/Design Main.tex}
\input{Text/05 - Implementation/ImplementationMain}
\input{Text/06 - Accept Test/TestMain}
\input{Text/07 - Discussion/DiscussionMain}
\input{Text/08 - Conclusion/ConclusionMain}
\BiblatexSplitbibDefernumbersWarningOff
%Sektions indelt kildeliste (indsæt keywords i kildelisten)
\printbibliography[heading=bibintoc,keyword={general},title={Bibliography}] 

\printbibliography[heading=bibintoc,keyword={image},title={Images}] 

\printbibliography[heading=bibintoc,keyword={datasheet},title={Datasheets}] 


\input{Text/09 - Appendix/Appendix.tex}


\end{document} 

부록의 주요 내용

\part*{Appendix}
\setglossarystyle{list}
\printglossary[type=\acronymtype,title={Abbreviations}]
\include{Text/09 - Appendix/CAN_Bitfields}
\include{Text/09 - Appendix/Figures}

용어 사전

%REMEMBER TO SORT ALPHABETICALLY
%\chapter{Glossary}\label{ch:glossary}

\newacronym{aau}{AAU}{Aalborg University}
\newacronym{fpga}{FPGA}{Field-Programmable Gate Array}
\newacronym{ram}{RAM}{Random Access Memory}
\newacronym{csi}{CSI}{Camera Serial Interface}
\newacronym{i2c}{I2C}{Inter-Integrated Circuit}
\newacronym{spi}{SPI}{Serial Peripheral Interface}
\newacronym{canbus}{CAN bus}{Controller Area Network bus}
\newacronym{leo}{LEO}{Low Earth Orbit}
\newacronym{fov}{FOV}{Field Of View}
\newacronym{ifov}{IFOV}{Instantaneous Field Of View}
\newacronym{csp}{CSP}{Cubesat Space Protocol}
\newacronym{cpu}{CPU}{Central Processing Unit}
\newacronym{esa}{ESA}{European Space Agency}
\newacronym{psk}{PSK}{Phase Shift Keying}
\newacronym{bpsk}{BPSK}{Binary Phase Skift Keying}
\newacronym{qpsk}{QPSK}{Quadrature Phase Shift Keying}

\newacronym{po}{PO}{Polar Orbit}
\newacronym{geo}{GEO}{Geostationary Orbit}

\newacronym{eps}{EPS}{Electronic Power Systems}
\newacronym{com}{COM}{Communication}
\newacronym{adcs}{ADCS}{Attitude Determination and Control System}
\newacronym{ais}{AIS}{Automatic Identification System}
\newacronym{fp}{FP}{Flightplanner}
\newacronym{ecu}{ECU}{Electronic Control Unit}
\newacronym{iso}{ISO}{International Standardization Organization}
\newacronym{usb}{USB}{Universal Serial Bus}
\newacronym{canh}{CANH}{CAN High}
\newacronym{canl}{CANL}{CAN Low}
\newacronym{can}{CAN}{Controller Area Network}
\newacronym{ieee}{IEEE}{The Institute of Electrical and Electronic Engineers}

\newacronym{p-pod}{P-POD}{Poly Picosatellite Orbital Deployer}
\newacronym{iod}{IOD}{In-Orbit Demonstration}

%Bitfields for can message frame
\newacronym{sof}{SOF}{Start Of Frame}
\newacronym{rtr}{RTR}{Remote Transmission Request}
\newacronym{ide}{IDE}{Identifier Extension}
\newacronym{dlc}{DLC}{Data Length Code}
\newacronym{crc}{CRC}{Cyclic Redundancy Check}
\newacronym{ack}{ACK}{Acknowledge}
\newacronym{eof}{EOF}{End Of Frame}
\newacronym{ifs}{IFS}{Interframe Space}
\newacronym{jpeg}{JPEG}{Joint Photographic Experts Group}

\newacronym{uhf}{UHF}{Ultra High Frequency}
\newacronym{vlc}{VLC}{Variable Length Encodig}

\newacronym{mipi}{MIPI}{Mobile Industry Processors Interface}

\newacronym{dct}{DCT}{Discreate Cosine Transform}

\newacronym{fec}{FEC}{Forward Error Correction}

\newacronym{bpp}{bpp}{bits per pixel}

\newacronym{bpc}{bpc}{bits per color}
\newacronym{mcu}{MCU}{Microcontroller Unit}
\newacronym{hdl}{HDL}{Microcontroller Unit}

여기 계신 분이 무엇이 문제의 원인인지 알 수 있는지는 모르겠지만 피드백을 주시면 매우 감사하겠습니다. 미리 감사드립니다.

편집: 용어집 명령이 사용되는 전체 위치와 작성 당시의 용어집을 추가했습니다.

답변1

추가 코드를 사용하면 코드를 줄여 문제를 재현할 수 있습니다.

\documentclass{report}
\usepackage{enumitem}

\setlist[description]{style=nextline}

\usepackage[acronym]{glossaries}

\makeglossaries

\newacronym{aau}{AAU}{Aalborg University}
\newacronym{fpga}{FPGA}{Field-Programmable Gate Array}
\newacronym{ram}{RAM}{Random Access Memory}
\newacronym{csi}{CSI}{Camera Serial Interface}
\newacronym{i2c}{I2C}{Inter-Integrated Circuit}
\newacronym{spi}{SPI}{Serial Peripheral Interface}
\newacronym{canbus}{CAN bus}{Controller Area Network bus}
\newacronym{leo}{LEO}{Low Earth Orbit}
\newacronym{fov}{FOV}{Field Of View}
\newacronym{ifov}{IFOV}{Instantaneous Field Of View}
\newacronym{csp}{CSP}{Cubesat Space Protocol}
\newacronym{cpu}{CPU}{Central Processing Unit}
\newacronym{esa}{ESA}{European Space Agency}

\glsaddall[types=\acronymtype]

\begin{document}
\setglossarystyle{list}
\printglossary[type=\acronymtype,title={Abbreviations}]
\end{document} 

라인으로

\setlist[description]{style=nextline}

책임을 지는 것.

후드 아래에는glossaries목록 스타일은 환경을 기반으로 구축되었습니다 description. 당신이 함께 description있는 스타일을 재정의한 것처럼nextlineenumitem, 레이블이 목록 환경의 \item것보다 넓은 경우 새 줄에 내용을 넣습니다 . leftmargin이것이 바로 일부 약어(가장 넓은 짧은 형식의 약어)만이 새 줄에 긴 형식을 갖는 이유입니다.

description다른 환경을 해당 스타일로 조판하려는 경우 nextline직전에 설명 환경을 변경하여 \printglossary원래대로 복원합니다.

\setlist[description]{style=standard}
\printglossary[type=\acronymtype,title={Abbreviations}]

그만큼glossaries list그러면 스타일 및 관련 스타일이 매뉴얼에서 예상한 대로 작동해야 합니다.

동일한 줄에 정의된 짧은 형식과 긴 형식을 보여주는 용어집 패키지의 약어 목록을 보여주는 컴파일된 코드의 결과

관련 정보