LaTeX.org
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.
- Fonts & Character Sets • lmroman not loadable at 10ptby Haines on November 7, 2025 at 8:07 pm
Here is a mwe \documentclass[]{book} c \usepackage{fontspe} \begin{document} test \end{document}This is the error:(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric data not found or bad.<to be read again> relax l.116 ...lt\familydefault\seriesdefault\shapedefaultIf I comment the \usepackage{fontspe line, the mwe runs as it should.Haines BStatistics: Posted by Haines — Fri Nov 07, 2025 10:07 pm
- Fonts & Character Sets • accessing libertinusby Haines on November 7, 2025 at 7:37 pm
I did upgraded my operating system (devuan excalibur) and in so doing lost access to the libertinus font, even though I believe it is automatically comes with TexLive. I did register fonts for LaTeX. Here is a mwe \documentclass{memoir} \usepackage{libertinus} \begin{document} test \end{document} This produces the error: (/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty)[\directlua]:1: attempt to index a nil value (global 'fonts') stack traceback: [\directlua]:1: in main chunk. l.27 }I do not understand the error. Is it saying that there is an error at line 27 of texcomp.sty? Haines BrownStatistics: Posted by Haines — Fri Nov 07, 2025 9:37 pm
- General • Re: case-statement conditional textby Shea12Shea12 on November 7, 2025 at 3:22 pm
Thank you!Statistics: Posted by Shea12Shea12 — Fri Nov 07, 2025 5:22 pm
- General • Re: case-statement conditional textby Stefan Kottwitz on October 28, 2025 at 5:15 pm
Hi Alan,that's an excellent test example! Here's the improved code:Code: \documentclass{article}\usepackage{etoolbox}\begin{document}\newbool{customer1}\newbool{customer2}%...\newbool{customerN}\boolfalse{customer1}\booltrue{customerN}This is special information:\ifboolexpr{bool{customer1}}{%customer1 specific information}{%\ifboolexpr{bool{customer2}}{%customer2 specific information}{%\ifboolexpr{bool{customerN}}{%customerN specific information}{%No previous customers were matched}}}\end{document}In text, the end of a line is like a white space. So just take care that your macros don't insert line spaces just because the code line ends. Just comment out the line ending by a % where it should not cause a white space.That's the reason why you often can see percent signs at the end of lines in longer LaTeX macros that generate text, to avoid generating spaces. After a while one gets used to it and ends every macro code line with a % because the "end of line space" is only needed in text.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 7:15 pm
- General • case-statement conditional textby Shea12Shea12 on October 28, 2025 at 4:55 pm
Hello,In my continued search for various ways of creating conditional text, I'm looking for a good way to handle a case statements. One way of handling it is to use nested if statements, but the more cases your have the uglier/more-cumbersome it becomes, and I am also getting a weird spacing issue where the text is placed (large spacing after the colon).Is there a smarter way of handling this?Thank you for taking the time to read and reply,AlanExample nested statement, spacing issueCode: \documentclass{article}\usepackage{etoolbox}\begin{document}\newbool{customer1}\newbool{customer2}%...\newbool{customerN}This is general text all customers get.\booltrue{customer1}This is special information:\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customer2}}{customerN specific information}{No previous customers were matched}}}\boolfalse{customer1}\booltrue{customerN}Notice the larger spacing after the colon using customerNThis is special information:\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customerN}}{customerN specific information}{No previous customers were matched}}}\bigskipIf the text is on a new line, no spacing issue\booltrue{customer1}\boolfalse{customerN}\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customer2}}{customerN specific information}{No previous customers were matched}}}\boolfalse{customer1}\booltrue{customerN}\ifboolexpr{bool{customer1}}{customer1 specific information}{\ifboolexpr{bool{customer2}}{customer2 specific information}{\ifboolexpr{bool{customerN}}{customerN specific information}{No previous customers were matched}}}\end{document}Statistics: Posted by Shea12Shea12 — Tue Oct 28, 2025 6:55 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby Stefan Kottwitz on October 28, 2025 at 1:58 pm
I get 0 errors. Perhaps post your updated code and the .log file you get with that code to see the exact error message and related information. I don't get an !Extra \fi error.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 3:58 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby gmbokoma_94 on October 28, 2025 at 1:43 pm
Dear StefanThank you very much. I have tried re-positioning \usepackage{BSPMsample} but I am still getting the same error. I will probably try to avoid subcaption at all cost. Or is there anyway I can do it?Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 3:43 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby Stefan Kottwitz on October 28, 2025 at 10:59 am
Sure, that's why I suggested keeping it, but moving it to a later place. If you have it on the top, first loaded, the other packages are not only interfering but can also change the journal's settings. If you move it to the end, it applies its settings later, when another package's settings cannot overwrite them. But if you don't have another error, you can keep that, the errors I got may be related to my local LaTeX version.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 12:59 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby gmbokoma_94 on October 28, 2025 at 10:23 am
Thank you StefanThe \usepackage{BSPMsample} is a special package for journal submission that I am trying to submit my article too. I can not by pass it. Maybe their package does not support \subcaptionbox, otherwise everything else is good.Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 12:23 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby Stefan Kottwitz on October 28, 2025 at 10:11 am
You have this line here:Code: \caption{ Numerical, exact solution and absolute error at $T = 5$, with $\Delta t = 0.1$, $\Delta x = 0.12 $ for %Eq.~(\ref{eq-27}).}Eq.~(\ref{eq-27}).} is commented out by that percent sign, so the closing brace is missing. Remove that % symbol.Also, I think better moveCode: \usepackage{BSPMsample}to the end of the preamble, right before \begin{document}, because it seems to interfere with the other packages otherwise.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 12:11 pm
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby gmbokoma_94 on October 28, 2025 at 8:52 am
Hi StefanThank you so much.Kindly, see attached the attached file. I literally just cut the parts that is giving problem. Test.zipStatistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 10:52 am
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby Stefan Kottwitz on October 28, 2025 at 8:21 am
A quick example to show that it's usually working:Code: \documentclass{article}\usepackage{subcaption,lipsum}\begin{document}\section*{Demo of subcaption with subcaptionbox}\lipsum[1]\begin{figure}[htbp!] \centering \subcaptionbox{First dummy image}[.45\linewidth]{% \fbox{\rule{0pt}{3cm}\rule{5cm}{0pt}}% }\hfill \subcaptionbox{Second dummy image (longer caption to show wrapping)}[.45\linewidth]{% \fbox{\rule{0pt}{3cm}\rule{5cm}{0pt}}% } \caption{Two subfigures created with subcaptionbox} \label{fig:main-fig}\end{figure}\lipsum[2]\end{document}StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 10:21 am
- Graphics, Figures & Tables • Re: Getting Extra \fi error for using subcaption packageby Stefan Kottwitz on October 28, 2025 at 8:14 am
Hi,welcome to the forum!There may be an error in your code. Perhaps post your code here as a small, reduced copy (complete with relevant preamble like \documentclass, etc.). That code should bring the error when we test it.Once we can test the code and see the error, we can fix it most of the time. Without code, a hint is rarely possible.StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 28, 2025 10:14 am
- Graphics, Figures & Tables • Getting Extra \fi error for using subcaption packageby gmbokoma_94 on October 28, 2025 at 7:47 am
Hi Kindly, assist with !Extra \fi error for subcaption package. The package is working perfectly for other projects but not working for this specific one. This error is rising from having \subcaptionbox inside the figure enviroment.Statistics: Posted by gmbokoma_94 — Tue Oct 28, 2025 9:47 am
- General • Re: input files with variable filenamesby Amaydennis on October 28, 2025 at 6:23 am
Working with LaTeX and input files that have variable filenames can be tricky, but using commands like \jobname or external scripts can help automate the process and make your workflow much smoother. While tackling complex document structures, it’s also important to stay mindful of personal wellness. For example, a intermittent fasting app can help you track your fasting windows, set reminders, and maintain consistency, making it easier to stay healthy even during long coding or writing sessions. Additionally, https://wellness-app.com/ offers a variety of tools and resources to support your overall well-being, helping you balance productivity and self-care in a structured way.Statistics: Posted by Amaydennis — Tue Oct 28, 2025 8:23 am
- Text Formatting • Re: Latex ToC File Updates Everytimeby Stefan Kottwitz on October 25, 2025 at 7:24 pm
Something does that, but it's hard to say without knowing your document class and packages. Perhaps post that part of your file before \begin{document}.StefanStatistics: Posted by Stefan Kottwitz — Sat Oct 25, 2025 9:24 pm
- Text Formatting • Re: Latex ToC File Updates Everytimeby ranaya123 on October 25, 2025 at 4:07 pm
Dear Stefan,Thanks for the reply. I checked for the appearance of *toc* in all my files, specifically on the "changetocdepth" keyword. I found the related entries in the .aux file.main.aux:\@writefile{toc}{\changetocdepth {1}}main.aux:\@writefile{toc}{\contentsline {chapter}{Abbreviations}{185}{chapter*.117}\protected@file@percent }main.aux:\@writefile{toc}{\contentsline {chapter}{Bibliography}{187}{section*.119}\protected@file@percent }main.aux:\@writefile{toc}{\contentsline {chapter}{List of Publications from this Thesis}{207}{section*.121}\protected@file@percent }For instance, the first line doesn't change in any of the runs. Is this the source of the problem? I have changed this one as well, but still the issue seems to be persistent. Can you shed some light ?ThanksAnuradhaStatistics: Posted by ranaya123 — Sat Oct 25, 2025 6:07 pm
- Text Formatting • Re: Latex ToC File Updates Everytimeby Stefan Kottwitz on October 25, 2025 at 1:45 pm
Hi Anuradha,LaTeX generates the .doc file every time you run it. Document classes, packages, and macros can write to that file. Without enough information, I cannot say more. Perhaps post the entire preamble of your document.StefanStatistics: Posted by Stefan Kottwitz — Sat Oct 25, 2025 3:45 pm
- Text Formatting • Re: Latex ToC File Updates Everytimeby ranaya123 on October 25, 2025 at 1:21 pm
Dear @Stefan,Well, I find it quite strange to mention this. The content of this file is changing time to time. How is this possible ? For instance this line over here: \addtocontents{toc}{\protect\changetocdepth{2}}Changes next time, to it's old content: \changetocdepth {1}Can this be really possible ? I have never come across a situation like that. So then, this must be a problem of Windows location ?Thanks and Best Regards AnuradhaStatistics: Posted by ranaya123 — Sat Oct 25, 2025 3:21 pm
- General • Re: ifstrequal conditional textby Shea12Shea12 on October 24, 2025 at 7:02 pm
Thank you for the quick response!Using the expansion fixes my issues.Statistics: Posted by Shea12Shea12 — Fri Oct 24, 2025 9:02 pm
- General • Re: ifstrequal conditional textby Stefan Kottwitz on October 24, 2025 at 11:28 am
Hi Alan,that's a very good question!It's important to know that \ifstrequal doesn't expand the strings to compare them.You can use \expandafter, \expanded, or \ExpandArgs{ee} to force expansion. The latter is documented with xparse, but it's in the LaTeX kernel already. e stands for full expansion of the contents of a braced group using \expanded, ee does it for two groups:Code: \documentclass{article}\usepackage{etoolbox} % Required for \ifstrequal\begin{document}\def\myStringA{Hello}\def\myStringB{World}\def\myStringC{Hello}Comparing two identical defined strings\ExpandArgs{ee}\ifstrequal{\myStringA}{\myStringC}{% The strings "Hello" and "Hello" are equal.}{% The strings "Hello" and "Hello" are not equal.}\end{document}StefanStatistics: Posted by Stefan Kottwitz — Fri Oct 24, 2025 1:28 pm
- General • ifstrequal conditional textby Shea12Shea12 on October 23, 2025 at 9:56 pm
Hello,I am attempting to use etoolbox for various logical operators to conditionally write text. I ultimately want to use \ifboolexpr, but I can't seem to understand how \ifstrequal behaves. Specifically, I think I am unable to get the TRUE statement, and I think I am doing something incorrect with the defined strings. Why are the defined strings myStringA and myStringC evaluated as FALSE?Thank you in advance for taking the time to read and reply.-AlanCode: \documentclass{article}\usepackage{etoolbox} % Required for \ifstrequal\begin{document}\def\myStringA{Hello}\def\myStringB{World}\def\myStringC{Hello}Comparing two different defined strings\ifstrequal{\myStringA}{\myStringB}{% The strings "Hello" and "World" are equal.}{% The strings "Hello" and "World" are not equal.}Comparing two identical defined strings (This is incorrect)\ifstrequal{\myStringA}{\myStringC}{% The strings "Hello" and "Hello" are equal.}{% The strings "Hello" and "Hello" are not equal.}Comparing string to different defined strings\ifstrequal{Hello}{\myStringB}{% The strings "Hello" and "World" are equal.}{% The strings "Hello" and "World" are not equal.}Comparing string to identical defined strings (This is incorrect)\ifstrequal{Hello}{\myStringA}{% The strings "Hello" and "Hello" are equal.}{% The strings "Hello" and "Hello" are not equal.}Direct string comparison TRUE\ifstrequal{apple}{orange}{% "apple" and "orange" are equal.}{% "apple" and "orange" are not equal.}Direct string comparison FALSE\ifstrequal{apple}{apple}{% "apple" and "apple" are equal.}{% "apple" and "apple" are not equal.}Direct string comparison FALSE\ifboolexpr{test{\ifstrequal{apple}{orange}} or test{\ifstrequal{apple}{apple}}}{% The "OR" case is TRUE.}{% The "OR" case is FALSEl.}\end{document}Statistics: Posted by Shea12Shea12 — Thu Oct 23, 2025 11:56 pm
- General • Re: Restart reference numbering after each chapterby marbocam on October 22, 2025 at 5:50 pm
Exactly, I only left behind <main>.tex/.xmpdata/.dvi and <main>.blg . All the rest were erased Statistics: Posted by marbocam — Wed Oct 22, 2025 7:50 pm
- Text Formatting • Re: Latex ToC File Updates Everytimeby Stefan Kottwitz on October 21, 2025 at 4:02 pm
Hi Anuradha,perhaps use in your document:Code: \addtocontents{toc}{\protect\changetocdepth{2}}StefanStatistics: Posted by Stefan Kottwitz — Tue Oct 21, 2025 6:02 pm
- Text Formatting • Latex ToC File Updates Everytimeby ranaya123 on October 21, 2025 at 3:23 pm
Dear All,Hi, in my Latex file arrangement, I have this .toc file with all this Table of Content information. The content may look like below \changetocdepth {2}\babel@toc {dutch}{}\relax \babel@toc {english}{}\relax \babel@toc {english}{}\relax \babel@toc {dutch}{}\relax \babel@toc {english}{}\relax \contentsline {chapter}{\chapternumberline {1}Introduction}{1}{chapter.1}%\contentsline {section}{\numberline {1.1}\ac {cmos} Technology}{4}{section.1.1}%Now the next question is this. I have been trying to compile my Latex documents with PdfLatex altogether. Every time I open the Latex package in texmaker, The .toc file gets changed and I have to change the "table depth" every time. Now this issue seems to be repeating and I would like to fix this by changing the content.Can somebody please shed light on to solve this problem ?Thanks in advanceAnuradhaStatistics: Posted by ranaya123 — Tue Oct 21, 2025 5:23 pm
- Viewers for PDF, PS, and DVI • Re: Best PDF viewerby hkhctslue on October 21, 2025 at 3:19 pm
Thanks very much for the replies. I changed to Sumatra and it's been a breeze. It's light, fast and updates flawlessly. I tried PDF-Exchange Viewer and Foxit, but they had the same problems updating as acrobat 10. Thanks for your feedback.Thanks for the great discussion on PDF viewers for LaTeX. I agree that Sumatra PDF is an excellent choice for its speed and seamless integration with LaTeX editors. It's lightweight and provides real-time updates, which is crucial during document editing. On a related note, I've been using intermittent fasting app https://wellness-app.com/ to manage my screen time during long LaTeX sessions. It helps me stay focused and take necessary breaks, ensuring productivity without burnout.Thanks for information!Statistics: Posted by hkhctslue — Tue Oct 21, 2025 5:19 pm
- General • Re: Restart reference numbering after each chapterby 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 charactersby marbocam on October 21, 2025 at 11:57 am
I wish I could 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 lettersby 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 chapterby 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 chapterby 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 chapterby 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 chapterby 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 chapterby 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 identifierby 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 identifierby 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 identifierby 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 identifierby 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 identifierby 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 identifierby 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 pageby 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 pageby 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 identifierby 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 pageby 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 identifierby 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 pageby 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 wordby 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 wordby 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