LaTeX.org is a TeX and LaTeX forum, suited for LaTeX beginners and experts who help them. Here are the newest questions. Sorry that the code formatting is not preserved through the RSS feed.

  • General • Re: Restart reference numbering after each chapter
    by Stefan Kottwitz on October 21, 2025 at 1:44 pm

    Good to know that it works now! Indeed, removing all the automatically generated files (.aux etc.) can help in starting fresh without errors caused within those files.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 21, 2025 3:44 pm

  • General • Re: How to delete a post on this forum?
    by Stefan Kottwitz on October 21, 2025 at 1:42 pm

    I'm glad that it works for you!Yes, plagiarism checkers' possible false positive findings seem unnecessary, but of course, that's not the case here. If a LaTeX support forum appears with a technical discussion of writing tools issues, then it's not just some work to justify but perfect proof that you worked hard technically on your thesis's code.Good luck with the reviewers! They may provide good insights from their perspective.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 21, 2025 3:42 pm

  • General • Re: How to delete a post on this forum?
    by marbocam on October 21, 2025 at 12:00 pm

    Hi there!As it turns out, the plagiarism tool didn't register this site, so no need to worry - I could have also justified the presence of my contents, but no need to Thank you very much for all your help, Stefan. Hopefully, the reviewers won't demand many changes Statistics: Posted by marbocam — Tue Oct 21, 2025 2:00 pm

  • Text Formatting • Re: embedding fonts from special characters
    by marbocam on October 21, 2025 at 11:57 am

    I wish I how pin or upvote your post, as it saved me yesterday evening when I was trying to hand-in my thesis Statistics: Posted by marbocam — Tue Oct 21, 2025 1:57 pm

  • Text Formatting • A circle around one or two letters
    by PK_TeX on October 21, 2025 at 8:50 am

    Hi,I need to circle one or two letters, and the letters can be either a capital letter (only one in this case), a digit or two digits.I used \def\NRU#1{\tikz\node[circle,draw,inner sep=1pt,outer sep=1pt]{\scriptsize #1};}\def\NRD#1{\tikz\node[circle,draw,inner sep=1pt,outer sep=1pt]{\tiny #1};}And I have in my text \NRU{S}, \NRU{1}, \NRU{2} \NRD{13}, \NRD{23} and \NRD{24}Of course, I want the circleds letters be integrated perfectly in the line (without adding spacing).My solution is quite good, but there is a slight difference between one and two digits.Is it a solution for centering and reducing the letters in any cases?ThanksStatistics: Posted by PK_TeX — Tue Oct 21, 2025 10:50 am

  • General • Re: Restart reference numbering after each chapter
    by marbocam on October 18, 2025 at 2:09 pm

    I ended up deleting all the doc associated to my main and now it's working! Statistics: Posted by marbocam — Sat Oct 18, 2025 4:09 pm

  • General • Re: Restart reference numbering after each chapter
    by marbocam on October 18, 2025 at 12:57 pm

    JC.. Why is it not working for me????Statistics: Posted by marbocam — Sat Oct 18, 2025 2:57 pm

  • General • Restart reference numbering after each chapter
    by marbocam on October 18, 2025 at 12:52 pm

    Hi there,so, this is enoying because at some point I managed to do it, but now I can't figure it out... I need to restart the reference numbering after each chapter, but can't seem to achieve it..Here's my code with a hopefully working example:Code: \documentclass{report}\usepackage[backend=bibtex,style=ieee,natbib=true,maxnames=100,minnames=100,defernumbers=true,citestyle=numeric-comp]{biblatex}\begin{filecontents}{references.bib}@book{DK86, author = "D.E. Knuth", title = "The {\TeX}book", publisher = "Addison Wesley", year = 1986, keywords={chap1}}@article{DK89, author = "D.E. Knuth", title = "Typesetting Concrete Mathematics", journal = "TUGboat", volume = 10, number = 1, pages = "31--36", month = apr, year = 1989, keywords={chap1}}@book{Lamport, author = "Leslie Lamport", title = "\LaTeX: A Document Preparation System", publisher = "Addison Wesley", year = 1986, keywords={chap2}}\end{filecontents}\addbibresource{references.bib}\begin{document}\chapter{\TeX}To study \TeX\ in depth, see \autocite{DK86}. For writing math texts,see \autocite{DK89}.\addcontentsline{toc}{section}{References}\printbibliography[heading=subbibliography,resetnumbers,keyword=chap1]\chapter{\LaTeX}The basic reference for \LaTeX\ is \autocite{Lamport}.\addcontentsline{toc}{section}{References}\printbibliography[heading=subbibliography,resetnumbers,keyword=chap2]\end{document}What am I doing wrong???Statistics: Posted by marbocam — Sat Oct 18, 2025 2:52 pm

  • General • Re: Change title spacing in chapter
    by marbocam on October 17, 2025 at 2:45 pm

    Nevermind.. I changed the before spacing and it worked Statistics: Posted by marbocam — Fri Oct 17, 2025 4:45 pm

  • General • Change title spacing in chapter
    by marbocam on October 17, 2025 at 2:41 pm

    Hi there!I'm almost done wqith my thesis, however, I would like to change the title spacing of each chapter so that the text is close to it...I'm currently using \titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}[<right>] without the 'right' part, but it doesn't seem to be working...Any ideas how else I can achieve that?Thanks!Statistics: Posted by marbocam — Fri Oct 17, 2025 4:41 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by marbocam on October 10, 2025 at 3:52 pm

    Tried to contact you through the site, but that doesn't seem possible. If you can see my email on my profile, you can write me and I will send you a cleared project - we might figure it out them. Otherwise, it's fine. I mean, the pdf compiles just fine Statistics: Posted by marbocam — Fri Oct 10, 2025 5:52 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by marbocam on October 10, 2025 at 1:52 pm

    Weird... I did that and the error keeps happening.. Then, I commented the \mainmatter line and, while the error desappeared, the numering of the pages continues in roman numerals and the link of the bookmark sends you to the title page of the thesis... :/Statistics: Posted by marbocam — Fri Oct 10, 2025 3:52 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by Stefan Kottwitz on October 10, 2025 at 1:09 pm

    The first page number is 1 in roman format, after \mainmatter comes 1 in arabic format. That's the duplicate. Try this before \begin{document}:Code: \hypersetup{pdfpagelabels=true}StefanStatistics: Posted by Stefan Kottwitz — Fri Oct 10, 2025 3:09 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by marbocam on October 10, 2025 at 12:08 pm

    I'm unsure how to do that as I use a custom layout, but will try it with article...Here's is my main doc:Code: \documentclass{article}\usepackage{etoolbox}\usepackage{tikz}%\usepackage[backend=bibtex,style=ieee,natbib=true,maxnames=100,minnames=100,citestyle=numeric-comp]{biblatex} %, defernumbers=true%\addbibresource{references.bib}\usepackage{rotating}\usepackage{enumitem}\usepackage{amsmath,array,graphicx}\usepackage{float} % for tables\counterwithin{figure}{chapter}\counterwithin{table}{chapter}\counterwithin{equation}{chapter}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3} % Until subsubseccions in contents-\usepackage[acronym, nonumberlist, style=super]{glossaries}\newcommand{\capitalizefirst}[1]{\xmakefirstuc{#1}}%para mostrar la primera letra de los acronimos en mayuscula% Customize the glossary style to bold the acronyms\renewcommand{\glsnamefont}[1]{\textbf{#1}}\makeglossaries%\input{acronyms.tex}\glsaddall\usepackage{tocloft}\setlength{\cftfignumwidth}{3em}\setlength{\parskip}{8pt}%% Some personalized configurations%% Front page\begin{document}%\input{Portada}\begin{titlepage}\centering\vspace*{-3cm}% Add your image here\vspace{1.5cm}\Huge\textbf{Photonic Transceivers for 6G yada yada} \\\vspace{1.8cm}\mdseries\large Ph.D thesis\\by\\\Large\textbf{My name}\vspace{1.8cm}\begin{tabular}{l@{\hspace{.75em}}l}\Large Supervisors: & \Large Name\\[.5ex] & Name\Large \end{tabular}\vspace{1.6 cm}\mdseries\large Place, month 2025\end{titlepage}\cleardoublepage%% some more configs% Acknoledgements/Abstract/About the author% Contents\ifEPUB\else% Contents\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\contentsname}\tableofcontents % Figs\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listfigurename}\listoffigures% Lista de tablas\cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listtablename}\listoftables%\cleardoublepage%\phantomsection\addcontentsline{toc}{chapter}{Acronyms}%\printglossary[type=\acronymtype]\fi\clearpage\mainmatter % <---------- First chapter in page 1% -------------------------------------------------------% Chapters%\input{cap_chapter_1}\chapter{Introduction}\label{chap1}\section{Context and motivation}\label{sec:context}\subsection{Evolution of mobile wireless communications}\end{document}It won't compile, sorry... You might be able to see the issue though Normally, the first page doesn't have a number, and then until the first chapter there's roman numerals..Statistics: Posted by marbocam — Fri Oct 10, 2025 2:08 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by Stefan Kottwitz on October 10, 2025 at 11:18 am

    Perhaps post the example here (reduced to the minimal things, without the regular text), then we will find it out. StefanStatistics: Posted by Stefan Kottwitz — Fri Oct 10, 2025 1:18 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by marbocam on October 10, 2025 at 9:37 am

    Thank you, Stefan. I'm confused as to why this happened, though.. Doesn't seem to have added anything that may have caused this issue...Statistics: Posted by marbocam — Fri Oct 10, 2025 11:37 am

  • General • Re: Force \subsubsection to appear at the bottom of the previous page
    by Stefan Kottwitz on October 9, 2025 at 5:14 pm

    Same, make space for them in any way StefanStatistics: Posted by Stefan Kottwitz — Thu Oct 09, 2025 7:14 pm

  • General • Re: Force \subsubsection to appear at the bottom of the previous page
    by marbocam on October 9, 2025 at 5:04 pm

    Hello again,what about the \subsections? how can I make them appear on the previous page?Statistics: Posted by marbocam — Thu Oct 09, 2025 7:04 pm

  • General • Re: pdfTeX warning (ext4): destination with the same identifier
    by Stefan Kottwitz on October 9, 2025 at 4:59 pm

    You have two pages numbered 1. This can be a title page, and then the "real" page 1. It can be resolved, for example, by using \hypersetup{pageanchor=false} before such a duplicate page, and set to true after it, or by using a different numbering style, even if the number on a title page is invisible.StefanStatistics: Posted by Stefan Kottwitz — Thu Oct 09, 2025 6:59 pm

  • General • Re: Force \subsubsection to appear at the bottom of the previous page
    by marbocam on October 9, 2025 at 3:25 pm

    Nice, Stefan! You also know how to make me happy! Statistics: Posted by marbocam — Thu Oct 09, 2025 5:25 pm

  • General • pdfTeX warning (ext4): destination with the same identifier
    by marbocam on October 9, 2025 at 3:08 pm

    I'm gettin this error when compiling on cmd from page 1 to 4. Doesn't seem to make any non wanted changes, but I'm curious... What's going on?pdfTeX warning (ext4): destination with the same identifier (name{page.1}) hasbeen already used, duplicate ignored<to be read again>Thank you!Statistics: Posted by marbocam — Thu Oct 09, 2025 5:08 pm

  • General • Re: Force \subsubsection to appear at the bottom of the previous page
    by Stefan Kottwitz on October 9, 2025 at 2:19 pm

    It seems there's probably just not enough space at the end of the page for \subsubsection (including the space before and after such a heading). Try \enlargethispage{\baselineskip} there.StefanStatistics: Posted by Stefan Kottwitz — Thu Oct 09, 2025 4:19 pm

  • General • Re: Adding apostrophe end of word
    by Stefan Kottwitz on October 9, 2025 at 2:18 pm

    I'm using \textquotesingle but this make both words to appear together.That's always with commands and macros: the space after the command name ends the name without being white space in text. You can write \textquotesingle\ or \textquotesingle{} in such a case.StefanStatistics: Posted by Stefan Kottwitz — Thu Oct 09, 2025 4:18 pm

  • General • Re: Adding apostrophe end of word
    by Stefan Kottwitz on October 9, 2025 at 2:12 pm

    Good that you found it, yes, there are different apostrophes in fonts and Unicode standards.StefanStatistics: Posted by Stefan Kottwitz — Thu Oct 09, 2025 4:12 pm

  • General • Force \subsubsection to appear at the bottom of the previous page
    by marbocam on October 9, 2025 at 1:16 pm

    Hi,at some points in my thesis, there's an empty space at the bottom of a page and the following \subsubsection jumps into the next page.I tried using \nopagebreak[4] without luck.. Is there a way to force latex into not making a page break?Thanks!Statistics: Posted by marbocam — Thu Oct 09, 2025 3:16 pm

  • General • Re: Adding apostrophe end of word
    by marbocam on October 9, 2025 at 12:58 pm

    So... I tried again adding ' to the file, and now it's working... Might have had some issue regarding copy/paste from word...Statistics: Posted by marbocam — Thu Oct 09, 2025 2:58 pm

  • General • Adding apostrophe end of word
    by marbocam on October 9, 2025 at 12:44 pm

    Hello again!How can I add an apostrophe at the end of a word, for example "authors' knowledge"? I'm using \textquotesingle but this make both words to appear together..Thank you!Statistics: Posted by marbocam — Thu Oct 09, 2025 2:44 pm

  • General • Re: Citing a range of sources with bibtex/natbib
    by marbocam on October 9, 2025 at 11:56 am

    Right, so I ended up adding 'citestyle=numeric-comp' to the package line.Code: \documentclass{article}\usepackage[backend=bibtex,style=ieee,natbib=true,maxnames=100,minnames=100,citestyle=numeric-comp]{biblatex} \addbibresource{references.bib}\begin{document}generated tone \cite{intro29,intro30,intro31,intro32}. \end{document}The output looks like: [29-32]. I guess it's ok, but would rather have [29]-[32]... If anyone knows how to do this, I would really appreciate it Statistics: Posted by marbocam — Thu Oct 09, 2025 1:56 pm

  • General • Citing a range of sources with bibtex/natbib
    by marbocam on October 9, 2025 at 11:19 am

    Hi all,I'm trying to figure out a way to cite a range of references and style it such as [29]-[32].I'm currently using:Code: \documentclass{article}\usepackage[backend=bibtex,style=ieee,natbib=true,maxnames=100,minnames=100]{biblatex} \addbibresource{references.bib}\begin{document}generated tone \cite{intro29,intro30,intro31,intro32}. \end{document}Here are the refs in case someone wants them:Code: @ARTICLE{intro29, author={L. Liu and M. Ye and Z. Yu and W. Xue}, journal={Journal of Lightwave Technology}, title={{Notch microwave photonic filter with narrow bandwidth and ultra-high all-optical tuning efficiency based on a silicon nanobeam cavity}}, year={2023}, volume={41}, number={15}, pages={5051-5058},keywords={chap1}}@ARTICLE{intro30, author={M.-T. Zhou and Q. J. Wang and B. Luo and Y.X. Guo and L.C. Ong and Y. Zhang and Y. Zhang and Y. C. Soh and R. Miura}, journal={Optics Communications}, title={{Performance improvement and wavelength reuse in millimeter-wave radio-over-fiber links incorporating all-fiber optical interleaver}}, year={2008}, volume={281}, number={9}, pages={2572-2581},keywords={chap1}}@ARTICLE{intro31, author={X. Han and J. Yao}, journal={Journal of Lightwave Technology}, title={{Bandstop-to-bandpass microwave photonic filter using a phase-shifted fiber Bragg grating}}, year={2015}, volume={33}, number={24}, pages={5133-5139},keywords={chap1}}@ARTICLE{intro32, author={M. Bakaul and A. Nirmalathas and C. Lim and D. Novak and R. B. Waterhouse}, journal={Journal of Lightwave Technology}, title={{Simultaneous multiplexing and demultiplexing of wavelength-interleaved channels in DWDM millimeter-wave fiber-radio networks}}, year={2006}, volume={24}, number={9}, pages={3341-3352},keywords={chap1}}This displays all four references separated by a comma instead of a range... Is there a way to work around this issue?Thank you in advance!Statistics: Posted by marbocam — Thu Oct 09, 2025 1:19 pm

  • General • Re: Scale equation using \begin{align}
    by marbocam on October 8, 2025 at 6:36 am

    Thank you, Stefan! It worked like a charm Statistics: Posted by marbocam — Wed Oct 08, 2025 8:36 am

  • General • Re: Scale equation using \begin{align}
    by Stefan Kottwitz on October 7, 2025 at 10:54 pm

    "Displayed" equations cannot be nested. Like, we cannot put a page on a page, but we can put a smaller box on a page.There are math environments that can be used within a displayed math environment, like aligned (instead of align). This works:Code: \documentclass{article}\usepackage{amsmath,array,graphicx}\begin{document}\begin{equation}\scalebox{0.9}{$\begin{aligned}{E}_{PD}\ \left(t \right) =& \!\left[ {T}_o{J}_o\left({{m}_{RF}} \right) + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L\omega _{RF}^2} \right.\\& \times \left({{e}^{j{\omega }_{RF}t} + {e}^{ - j{\omega }_{RF}t}} \right) \\& \!-\! \left. {J}_2\left({{m}_{RF}} \right){e}^{j2{\beta }_2L\omega _{RF}^2}\!\left({{e}^{j2{\omega }_{RF}t} \!+\! {e}^{ - j2{\omega }_{RF}t}} \!\right) \!\right] e ^{j{\omega }_ot}\\& + {T}_o{J}_o\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L\omega _{IF}^2}\left({m}_ + \cdot {e}^{j{\omega }_{IF}t} + {m}_ - \right.\\& \cdot \left. {e}^{ - j{\omega }_{IF}t} \right){e}^{j{\omega }_ot} + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({{\omega }_{RF} + {\omega }_{IF}} \right)}}^2}\\& \times \left({{m}_ + {e}^{j\left({{\omega }_{RF} + {\omega }_{IF}} \right)t} + {m}_ - {e}^{ - j\left({{\omega }_{RF} + {\omega }_{IF}} \right)t}} \right){e}^{j{\omega }_ot} \\& + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({{\omega }_{RF} - {\omega }_{IF}} \right)}}^2}\\&\!\times\! \left({{m}_ - \cdot {e}^{j\left({{\omega }_{RF} \!-\! {\omega }_{IF}} \right)t} \!+\! {m}_ + \cdot {e}^{ - j\left({{\omega }_{RF} \!-\! {\omega }_{IF}} \right)t}} \right){e}^{j{\omega }_ot} \\& - {J}_2\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({2{\omega }_{RF} + {\omega }_{IF}} \right)}}^2}\\& \times \left({{m}_ + \cdot {e}^{j\left({2{\omega }_{RF} + {\omega }_{IF}} \right)t} + {m}_ - \cdot {e}^{ - j\left({2{\omega }_{RF} + {\omega }_{IF}} \right)t}} \right)\\& \times {e}^{j{\omega }_ot} - {J}_2\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({2{\omega }_{RF} - {\omega }_{IF}} \right)}}^2}\\& \!\times\! \left({{m}_ - \cdot {e}^{j\!\left({2{\omega }_{RF} \!-\! {\omega }_{IF}} \!\right)t} \!+\! {m}_ + \cdot {e}^{ - j\!\left({2{\omega }_{RF} \!-\! {\omega }_{IF}} \!\right)t}} \!\right){e}^{j{\omega }_ot}\label{poc_E_PD_t}\end{aligned}$}\end{equation}\end{document}StefanStatistics: Posted by Stefan Kottwitz — Wed Oct 08, 2025 12:54 am

  • General • Scale equation using \begin{align}
    by marbocam on October 7, 2025 at 8:46 pm

    Hi,I have an equation that doesn't fit at the end of a page and, therefore, it jumps into the next page leaving a blank empty space...I'm trying to reduce it's size, and I actually managed to do it by using \scalebox{0.9}{$ to wrap it, but then i loose the numbering of the equation.. What am I doing wrong?Here is my code:Code: \documentclass{article}\usepackage{amsmath,array}\begin{document}\[\scalebox{0.9}{$\begin{align}{E}_{PD}\ \left(t \right) =& \!\left[ {T}_o{J}_o\left({{m}_{RF}} \right) + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L\omega _{RF}^2} \right.\\ \nonumber& \times \left({{e}^{j{\omega }_{RF}t} + {e}^{ - j{\omega }_{RF}t}} \right) \\ \nonumber& \!-\! \left. {J}_2\left({{m}_{RF}} \right){e}^{j2{\beta }_2L\omega _{RF}^2}\!\left({{e}^{j2{\omega }_{RF}t} \!+\! {e}^{ - j2{\omega }_{RF}t}} \!\right) \!\right] e ^{j{\omega }_ot}\\ \nonumber& + {T}_o{J}_o\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L\omega _{IF}^2}\left({m}_ + \cdot {e}^{j{\omega }_{IF}t} + {m}_ - \right.\\ \nonumber& \cdot \left. {e}^{ - j{\omega }_{IF}t} \right){e}^{j{\omega }_ot} + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({{\omega }_{RF} + {\omega }_{IF}} \right)}}^2}\\ \nonumber& \times \left({{m}_ + {e}^{j\left({{\omega }_{RF} + {\omega }_{IF}} \right)t} + {m}_ - {e}^{ - j\left({{\omega }_{RF} + {\omega }_{IF}} \right)t}} \right){e}^{j{\omega }_ot} \\ \nonumber& + j{J}_1\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({{\omega }_{RF} - {\omega }_{IF}} \right)}}^2}\\ \nonumber&\!\times\! \left({{m}_ - \cdot {e}^{j\left({{\omega }_{RF} \!-\! {\omega }_{IF}} \right)t} \!+\! {m}_ + \cdot {e}^{ - j\left({{\omega }_{RF} \!-\! {\omega }_{IF}} \right)t}} \right){e}^{j{\omega }_ot} \\ \nonumber& - {J}_2\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({2{\omega }_{RF} + {\omega }_{IF}} \right)}}^2}\\ \nonumber& \times \left({{m}_ + \cdot {e}^{j\left({2{\omega }_{RF} + {\omega }_{IF}} \right)t} + {m}_ - \cdot {e}^{ - j\left({2{\omega }_{RF} + {\omega }_{IF}} \right)t}} \right)\\ \nonumber& \times {e}^{j{\omega }_ot} - {J}_2\left({{m}_{RF}} \right){e}^{j\frac{1}{2}{\beta }_2L{{\left({2{\omega }_{RF} - {\omega }_{IF}} \right)}}^2}\\ \nonumber& \!\times\! \left({{m}_ - \cdot {e}^{j\!\left({2{\omega }_{RF} \!-\! {\omega }_{IF}} \!\right)t} \!+\! {m}_ + \cdot {e}^{ - j\!\left({2{\omega }_{RF} \!-\! {\omega }_{IF}} \!\right)t}} \!\right){e}^{j{\omega }_ot}\label{poc_E_PD_t}\end{align}$}\]\end{document}Thanks in advance!Statistics: Posted by marbocam — Tue Oct 07, 2025 10:46 pm

  • General • Re: Padding Zeros in an \href
    by Stefan Kottwitz on October 5, 2025 at 11:27 am

    Since it occurs with hyperref and not in regular text, you could post it as a Github issue. I recommend not calling it a bug, but a limitation or a problem. Such issues arise when complex macros are expanded and rewritten to create hyperlinks. There are commands to work around such issues, such as \protect and \expandafter. The hyperref developers may be used to solve such issues.StefanStatistics: Posted by Stefan Kottwitz — Sun Oct 05, 2025 1:27 pm

  • General • Re: Padding Zeros in an \href
    by chicagocoyote on October 4, 2025 at 7:47 pm

    Thank you for taking a look.So \href does not work when using \padzeroes in the argument.Could this be considered a bug?Could this be put on a bug list somewhere?Statistics: Posted by chicagocoyote — Sat Oct 04, 2025 9:47 pm

  • Text Formatting • Re: List of items shiftted to right
    by kostoglotov on October 3, 2025 at 7:34 pm

    Cheers mate. akStatistics: Posted by kostoglotov — Fri Oct 03, 2025 9:34 pm

  • Text Formatting • Re: List of items shiftted to right
    by Stefan Kottwitz on October 3, 2025 at 10:05 am

    Hi,you could use the leftmargin=* option,StefanStatistics: Posted by Stefan Kottwitz — Fri Oct 03, 2025 12:05 pm

  • General • Re: Padding Zeros in an \href
    by Stefan Kottwitz on October 3, 2025 at 9:42 am

    Both versions work basically:Code: \documentclass{book}\usepackage[colorlinks = true, urlcolor = blue]{hyperref}\newcommand{\AudioLinkStr}{https://soundcloud.com/user-145142078/}\begin{document}\href{\AudioLinkStr}{\textbf{Audio Example}}\expandafter\href\expandafter{\AudioLinkStr}{\textbf{Audio Example}}\end{document}However, that \padzeroes code causes an issue. I tried to expand it with \edef and \xdef, which causes other errors. Perhaps some other package works, or LaTeX's internal \two@digits command. StefanStatistics: Posted by Stefan Kottwitz — Fri Oct 03, 2025 11:42 am

  • General • Re: Padding Zeros in an \href
    by chicagocoyote on October 2, 2025 at 8:50 pm

    Thank you for your response. I was not able to get \href{} to work with \expandafter, however.Included here is a complete latex example which illustrates my problem. \AudioLinkStr _is_ returning a correctly formatted string, but I cannot get \AudioLinkStr to work in \hrefThank you all for taking a look.Code: \documentclass[11pt]{book}\usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue, citecolor = blue, anchorcolor = blue]{hyperref}\usepackage{fmtcount}\newcounter{ChChCounter}\newcounter{ChExCounter}\newcommand{\AudioLinkStr}{%https://soundcloud.com/user-145142078/ex\_\padzeroes[2]{\decimal{ChChCounter}}-\padzeroes[2]{\decimal{ChExCounter}}}\begin{document}\setcounter{ChChCounter}{6}\setcounter{ChExCounter}{1}% THIS INDICATES THAT MY STRING IS FORMATTED CORRECTLY% https://soundcloud.com/user-145142078/ex_06-01\AudioLinkStr\vspace{0.1in}% THIS SHOWS THAT THE HARD CODED STRING WILL WORK IN THE \href{} CONSTRUCT\href{https://soundcloud.com/user-145142078/ex_06-01}{\textbf{Audio Example \theChChCounter-\theChExCounter}}\vspace{0.1in}% BUT THIS LINK DOES NOT WORK\href{AudioLinkStr}{\textbf{Audio Example \theChChCounter-\theChExCounter}}\vspace{0.1in}% AND I DID NOT GET \expandafter TO WORK AS WELL\expandafter\href\expandafter{AudioLinkStr}{\textbf{Audio Example \theChChCounter-\theChExCounter}}\vspace{0.1in}\end{document}Statistics: Posted by chicagocoyote — Thu Oct 02, 2025 10:50 pm

  • Text Formatting • List of items shiftted to right
    by kostoglotov on October 2, 2025 at 8:35 pm

    Hi there, I needed to create list of items:1. Item bla bla bla2. Item bla bla blaI have found this:\begin{enumerate}[label=\arabic*, parsep=10pt, font=\bfseries]\item \textbf{List Item}\\bla bla bla \\\item \textbf{List Item}\end{enumerate}Works okay, except of the list is shifted to the right.What can I do so as to have it aligned (numbered items) as the previous text, i.e. to left?Thanks a lot...akStatistics: Posted by kostoglotov — Thu Oct 02, 2025 10:35 pm

  • General • Re: Padding Zeros in an \href
    by Stefan Kottwitz on October 1, 2025 at 10:07 am

    Hi,welcome to the forum!That may be solved with \expandafter, like this:Code: \expandafter\href\expandafter{AudioLinkStr}{\textbf{Audio Example Whatever}}If that doesn't work for you, perhaps copy a small (complete) example here that doesn't work. Use the "Code" button, then https is not parsed, no problem at all, and the code is even compilable online here. Like this:Code: \newcommand{\AudioLinkStr}{%https://fredgeorge.com/the\_book/ex\_\padzeroes[2]{\decimal{ChChCounter}}-\padzeroes[2]{\decimal{ChExCounter}}.mp3}StefanStatistics: Posted by Stefan Kottwitz — Wed Oct 01, 2025 12:07 pm

  • General • Padding Zeros in an \href
    by chicagocoyote on September 30, 2025 at 7:44 pm

    I am using \newcounter{} to create integers used in links to audio files in my PDF document. I need to zero-pad these integers to "2" spaces.Note that in my code examples, I have substituted the string "xxxxx" for "https". I have done this because the site formatter takes things that look like an html link and abbreviates them, thus, making some of my latex code disappear.In the header I have:\newcounter{ChChCounter}\newcounter{ChExCounter}\newcommand{\AudioLinkStr}{% xxxxx://fredgeorge.com/the\_book/ex\_\padzeroes[2]{\decimal{ChChCounter}}-\padzeroes[2]{\decimal{ChExCounter}}.mp3}and so, in my document, the command \AudioLinkStr will create strings that look like:xxxxx://fredgeorge.com/the_book/ex_06-01.mp3which is what I want.BUT, when I include \AudioLinkStr in a \href{}{} construct as follows: \href{AudioLinkStr}{\textbf{Audio Example Whatever}}a clickable link is created in my document, BUT the link does _NOT_ go to the audio example on the web in a browser. Instead the link tries to open the document "AudioLinkStr.pdf" with a PDF viewer! When I change the argument in \href from AudioLinkStr to \AudioLinkStr, building the document returns the error: ! TeX capacity exceeded, sorry [input stack size=10000]. \@protected@testopt ...estopt \else \@x@protect #1 \fi l.128 \href{\AudioLinkStr} {\textbf{Audio Example Whatever... ! ==> Fatal error occurred, no output PDF file produced!How can I fix the above? What am I doing wrong?Thank you for your help.P.S. I wonder if the problem is related to the fact that I have underscores in my web link. Notice that in the above I have to format the link with back slashes before the underscores: xxxxx://fredgeorge.com/the\_book/ex\_ ...Statistics: Posted by chicagocoyote — Tue Sep 30, 2025 9:44 pm

  • Text Formatting • Should I use LaTeX for making a resume?
    by xW0LFx on September 30, 2025 at 2:35 pm

    When I was building my resume, I thought about making it using LaTeX instead of Word (.docx). Honestly, I don’t think LaTeX is that good for making a resume, but the thing is I don’t really know much about it. So I’m wondering if it’s actually worth the effort compared to just using Word or Google Docs. If anyone here has used LaTeX for resumes I’d like to hear what’s good and what’s not.Statistics: Posted by xW0LFx — Tue Sep 30, 2025 4:35 pm

  • Text Formatting • Unable to fix consistent formatting
    by JanFeger on September 30, 2025 at 7:35 am

    Hello, I'm currently in the process of writing a Latex project documentation for my final exams. With the help of a template, I have hardly had to do change anything but there's one thing I couldn't fix with the help of Google/AI so far, so I thought I'd try my luck in a forum. My documentation includes a table of contents and everything except one is in line with each other but I don't know why that is the case and would love someone to shine some light on this. The code of the page looks like the following: Code: \documentclass[ngerman,inputenc=utf8, % KORREKT: UTF-8, wie im Originaltoc=listof,toc=bibliography,footnotes=multiple,parskip=half,numbers=noendperiod]{scrartcl}% Die zweite, überflüssige \usepackage[utf8]{inputenc} Zeile wird nicht benötigt.\input{Meta}\input{Allgemein/Packages}\input{Allgemein/Seitenstil}\input{Allgemein/Befehle}\input{Befehle}\begin{document}\phantomsection\thispagestyle{plain}\pdfbookmark[1]{Deckblatt}{deckblatt}\input{Deckblatt}\cleardoublepage% Preface --------------------------------------------------------------------\phantomsection\pagenumbering{Roman}\pdfbookmark[1]{Inhaltsverzeichnis}{inhalt}\tableofcontents\phantomsection\listoffigures\phantomsection\listoftables\phantomsection\lstlistoflistings\cleardoublepage\input{Abkuerzungen}% Content---------------------------------------------------------------------\pagenumbering{arabic}% Die manuellen Fußzeilen-Befehle wurden entfernt, da sie nun überflüssig sind.\input{Inhalt.tex}% Attachments---------------------------------------------------------------------\clearpage\appendix\pagenumbering{roman}\input{Anhang}\end{document}AndCode: % !TEX root = ../Projektdokumentation.tex% Page margins\setlength{\topskip}{\ht\strutbox}\geometry{a4paper, top=30mm, left=25mm, right=25mm, bottom=30mm}\setlength{\footskip}{10mm} % Abstand der Fußzeile anpassen\usepackage[automark,headsepline,ilines,footsepline]{scrlayer-scrpage}% Fallbacks (falls Meta.tex mal nicht geladen wurde)\providecommand{\titel}{}\providecommand{\untertitel}{}\providecommand{\autorName}{}\pagestyle{scrheadings}\clearscrheadfoot% -- HEADER--\renewcommand{\headfont}{\normalfont}\ihead{% \large\textsc{\titel}\\ \small\untertitel\\[1ex] \textit{\headmark}%}\chead{}\ohead{\includegraphics[height=12mm]{Bilder/Dachser-Logo.png}} % Logos lieber in Höhe begrenzen\setlength{\headheight}{21mm} % 18 mm ist knapp -> erhöhen!% -- FOOTER--\ifoot{\autorName}\cfoot{}\ofoot{\pagemark} % Seitenzahl rechts% Überschriften nach DIN 5008 in einer Fluchtlinie% ------------------------------------------------------------------------------\newcommand{\headingSpace}{1.5cm}% Abschnittsüberschriften im selben Stil wie beim Inhaltsverzeichnis einrücken\renewcommand*{\othersectionlevelsformat}[3]{ \makebox[\headingSpace][l]{#3\autodot}}% Für die Einrückung wird das Paket tocloft benötigt\cftsetindents{section}{0.0cm}{\headingSpace}\cftsetindents{subsection}{0.0cm}{\headingSpace}\cftsetindents{subsubsection}{0.0cm}{\headingSpace}\cftsetindents{figure}{0.0cm}{\headingSpace}\cftsetindents{table}{0.0cm}{\headingSpace}\cftsetindents{listing}{0.0cm}{\headingSpace} % General% ------------------------------------------------------------------------------\onehalfspacing % Zeilenabstand 1,5 Zeilen\frenchspacing % erzeugt ein wenig Platz hinter einem Punkt\clubpenalty = 10000\widowpenalty = 10000\displaywidowpenalty = 10000% Quellcode-Ausgabe formatieren (einfachste, stabile Version)\lstset{ numbers=left, numberstyle=\tiny, numbersep=5pt, breaklines=true, frame=single, showstringspaces=false}% Customise lists\renewcommand{\labelenumi}{\arabic{enumi}.}\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.}\renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}}% table colouring:% Die folgenden zwei Zeilen sind die wahrscheinlichste Ursache des ursprünglichen Fehlers% und bleiben daher deaktiviert.\definecolor{heading}{rgb}{0.64,0.78,0.86}\definecolor{odd}{rgb}{0.9,0.9,0.9}Thanks in advance for a reply!Statistics: Posted by JanFeger — Tue Sep 30, 2025 9:35 am

  • General • Undefined control sequence - ?? os error or hadware issue
    by latex_fun on September 29, 2025 at 12:59 am

    Got the above error message trying to pdflatex a file:! Undefined control sequence.l.278 \citCouldn't see anywhere I had \cit{reference} instead of \cite{reference} etc.So I cut out the recently added text, saved to a new file, then added text paragraph by paragraph - the error has just gone.As far as I can tell, the contents of the file.tex are the same.Should I be thinking there is a problem with my OS or disk or memory or some such?ThanksEdit (update):Another outside possibility - I had just copy pasted from the latex version of a book supplied to me by the author (yes, actually happened, I didn't just download a random file off the internet and, that was many years ago but I'm wondering if there might have been some anti-copy pasta feature associated with the file ? I think I'm only suppose to cite from the published version. Is this possible?Edit (further update):Also noticed I had a few stray pdflatex processes hanging around which I have only just killed - might they have been involved in this?Thanks againStatistics: Posted by latex_fun — Mon Sep 29, 2025 2:59 am

  • BibTeX, biblatex and biber • Re: How to do the ISO-690 (note, no abstract, French) style
    by NVV on September 28, 2025 at 10:24 am

    Some options of the biblatex package can fix some of your problems. For the others, you might want to check the biblatex-ext package.Code: \documentclass{report}\usepackage[utf8]{inputenc}\usepackage[french]{babel}%% URL managment\usepackage{hyperref}\hypersetup{ colorlinks=true, linkcolor=black, urlcolor=black, citecolor=black}%% Bibliography support part\usepackage[ backend=biber, style=iso-numeric, citestyle=verbose-ibid, abbreviate=false, % <--- sorting=nty, dateabbrev=false, % <--- alldates=long % <---]{biblatex}\DefineBibliographyStrings{french}{urlseen={Consulté le}} % <---\addbibresource{biblio.bib}\begin{document}\section{Citation de page web}Voici un exemple de citation d'une page web. \autocite{bonjour:epfl-principaux-logiciel-libre}\section{Bibliographie}\printbibliography\end{document}Statistics: Posted by NVV — Sun Sep 28, 2025 12:24 pm

  • General • Re: How to delete a post on this forum?
    by Stefan Kottwitz on September 23, 2025 at 4:14 pm

    As we only talk here about LaTeX related topics, you would not need to worry about the thesis. It's just about the writing Software, like we would discuss Microsoft Word and how to make a word bold or a footnote in a smaller font. Nothing related to the content of your thesis, nothing regarding scientific work.It's even good to talk technical things in technical forums to improve tools usage and typographic layout.A forum is not a place to delete things: people test your code, write improvements or fixes, help with troubleshooting, provide LaTeX information, explain how it works, and then it gets deleted? That's not a way; otherwise, this forum would be pretty empty if stuff got deleted after people worked on it. It's a public forum.In rare cases, when confidential information is accidentally posted and you can no longer edit it, you can flag it for a moderator's attention (the exclamation mark button "Report this post" at the top right of a post) to edit and remove a specific part that should not be public. We keep the forum content online, but of course we help when mistakes happen.StefanStatistics: Posted by Stefan Kottwitz — Tue Sep 23, 2025 6:14 pm

  • General • How to delete a post on this forum?
    by marbocam on September 23, 2025 at 3:37 pm

    As the title says, how to delete a post on this forum?I'm afraid I posted a couple of things that can give me trouble during the finals steps of presenting my thesis..Thanks in advance!Statistics: Posted by marbocam — Tue Sep 23, 2025 5:37 pm

  • General • How convert .fountain to latex
    by Deets on September 18, 2025 at 6:11 am

    Hi. I'd like to use the nice "screenplay" latex class, but I've only found a "fountain2latex" in Github written in Haskell that seems unmaintained and no releases available. Somebody knows any alternative? Thank you.Statistics: Posted by Deets — Thu Sep 18, 2025 8:11 am

  • Math & Science • Re: citation in maths mode
    by latex_fun on September 18, 2025 at 5:39 am

    Thanks StefanStatistics: Posted by latex_fun — Thu Sep 18, 2025 7:39 am

  • General • Re: Reducing the height of a row in a table
    by Stefan Kottwitz on September 12, 2025 at 3:48 pm

    Yes, you may use such a workaround. The reason is, that you use equations in table cells, and equations have vertical space around.Take a look here, I set the values to 0pt:Code: \documentclass{article}\usepackage{amsmath,array}\begin{document}\begin{table}[h!]\caption{Current amplitude response at low frequenciesin the mmW band (small signal regime)}\centering\small\renewcommand{\arraystretch}{0.1}% Tighter\abovedisplayskip=0pt\belowdisplayskip=0pt\abovedisplayshortskip=0pt\belowdisplayshortskip=0pt\begin{tabular}{p{1.5cm}p{7cm}}\hline\hline& \begin{equation*} i(2\omega_\text{RF}\pm\omega_\text{IF})\end{equation*}\\\hline\[\text{OB2B}\] & \begin{equation}\Re P_0 m_\text{AM}m_\text{RF}^2\sin^2 \varphi_\text{DC}\label{gain_OB2B}\end{equation}\\[-5pt]\[\text{SSMF}\] & \begin{equation}\Re P_0 m_\text{AM}m_\text{RF}^2\sin^2 \varphi_\text{DC}(1\pm j \alpha \kappa P_0 \beta L \omega_\text{RF}) \label{gain_SSMF}\end{equation}\\\hline\hline\end{tabular}\label{gainTable1}\end{table}\end{document}I would also recommend using \text for the indices, as they are not variables but kind of text labels.StefanStatistics: Posted by Stefan Kottwitz — Fri Sep 12, 2025 5:48 pm