Hot
- Incorrect polar coordinate positions and changing color of marksby humanoferth on February 2, 2026 at 7:02 pm
I've been trying to plot coordinates using the polar library of PGFplots, but the plot is just... wrong? Like the points are just not at the right position, and I'm not too sure what I'm missing. I'm pretty sure it may have something to do with using radians instead of degrees, but when I use radians to graph, they turn out fine. I would really prefer not to use degrees, but if it's the only solution, then I'll do the conversions. I'm also struggling to figure out how to change the actual infill color of the nodes. I've been referencing section 4.7.1, and in the code below I use fill, draw, and color, but the infill remains the same. Any help would be greatly appreciated. 🙂 \documentclass{report} \usepackage{amsmath} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepgfplotslibrary{polar} \begin{document} \[ \begin{array}{c|c} \text{Name}&(r,\theta)\\\hline A&(1,\dfrac{\pi}{3})\\ B&(2,\dfrac{3\pi}{4})\\ C&(3,\dfrac{7\pi}{6})\\ D&(-1,\dfrac{2\pi}{3})\\ \end{array}\implies\begin{tikzpicture}[baseline=(current bounding box.center)] \begin{polaraxis}[xticklabels={,0,$\frac{\pi}{6}$,$\frac{\pi}{3}$,$\frac{\pi}{2}$,$\frac{2\pi}{3}$,$\frac{5\pi}{6}$,$\pi$,$\frac{7\pi}{6}$,$\frac{4\pi}{3}$,$\frac{3\pi}{2}$,$\frac{5\pi}{3}$,$\frac{11\pi}{6}$}] \addplot+ [trig format plots=rad, data cs=polarrad,only marks,color=black, mark color=black,draw=black,fill=black,] coordinates {(1,pi/3)(2,3*pi/4)(3,7*pi/6)(-1,2*pi/3)}; \end{polaraxis} \end{tikzpicture} \] \end{document}
- File does not get saved as updated file, reverting to previous versionby Ruma Dutta on February 2, 2026 at 6:18 pm
Reinstalled texlive distribution again on windows 11 64 bit. Open .tex file using texworks. Chcked texworks preferences to give permission to all useres read, write, execution. Stiil the problem of saving as update file persists. How to solve this problem, I simply do not know. Need serious help. I upgraded texlive using tlmgr.
- tcolorbox: linebreaks missing at a very long number inside tcolorboxby cis on February 2, 2026 at 6:11 pm
I saw a very long number here and a solution with seqsplit.sty (from 2006) for its linebreaks. But I asked myself is there maybe a solution with the settings of tcolorbox? (Hint: It is clear, that I could use seqsplit inside the tcolorbox too, but I wonder, whether tcolorbox hat own methods for that.) \documentclass[margin=5pt, varwidth]{standalone} \usepackage{amsmath} \usepackage{xintexpr} \usepackage{seqsplit} \usepackage[most]{tcolorbox} \begin{document} \paragraph{Test (bad):} $2^{1000}=$ \xinteval{2**1000} \bigskip \paragraph{Test (seqsplit, good):} $2^{1000}=$ \expanded{\noexpand\seqsplit{\xinteval{2**1000}}} \bigskip \begin{tcolorbox}[title={Test (tcolobox, bad too)}] $2^{1000}=$ \xinteval{2**1000} \end{tcolorbox} \end{document}
- How to fading the background image with multiple opacity?by Explorer on February 2, 2026 at 5:58 pm
I have the following code to add background for the document: \documentclass{article} \usepackage{lipsum} \usepackage{geometry} \usepackage{graphicx} \usepackage{tikz,tikzpagenodes} \usetikzlibrary{calc,fadings} \AddToHook{shipout/background}{ \begin{tikzpicture}[remember picture,overlay] \node[ % path fading=north, inner sep=0pt,outer sep=0pt, anchor=south,opacity=.3, ] at (current page.south) {\includegraphics[width=\paperwidth]{bg.png}}; % \path[path picture={ % \node[inner sep=0pt,outer sep=0pt,anchor=south,scope fading=south] at (current page.south) {\includegraphics[width=\paperwidth]{bg.png}}; % }]; \coordinate (L) at ($(current page.north west)!.5! (current page text area.north west)$); \coordinate (R) at ($(current page.south east)!.5! (current page text area.south east)$); \fill[white,opacity=.5] (L) rectangle (R); \end{tikzpicture} } \begin{document} \lipsum[1-6] \end{document} It produced: However, the intersection border's color transformation is too sharp! I want the image could smoothly fade to white, with multiple opacity, I have consulted this link, but it doesn't work. The bg.png could be accessed as below(maybe example-image is okay, but its background is pure gray, I would prefer to show that on bg.png):
- How to resume an enumitem list at lower levelby mm96 on February 2, 2026 at 4:52 pm
Similar to this question: similar question I don't know, why the 'resume*=series' approach does not work here. \documentclass{scrartcl} \usepackage{enumitem} \begin{document} text text text texttext text text text\\ text text text texttext text text text \begin{enumerate}[leftmargin=*] \item asdfg \item afhaf \begin{enumerate}[series=_test] \item adslfa \item adsfadsf \end{enumerate} \end{enumerate} text text text texttext text text text\\ text text text texttext text text text \begin{enumerate}[resume*=_test] \item adfa \end{enumerate} \end{document}
- Scoping the value of a l3keys option to the place it is usedby Denis Bitouzé on February 2, 2026 at 2:45 pm
(Sorry for the vague title of this question, I can't think of a more appropriate one.) Suppose I want to define a wrapper for the command keytheorems's \newkeytheorem that allows me to provide custom both: a command name, (l3keys) keys options. For example, for French users, I might want to provide localized command name and keys options (this use case is only an example and does not correspond to the real motivation): in the MCE below, \nouveautheoreme and titre are the French translations of \newtheorem and title. The following attempt fails because the token list \l__mymodule_nouveautheoreme_titre_tl, used to store the value of the titre key, is not limited to the definition of each defined theorem: only the last value it took is used each time one of the defined theorems is used, so instead of: Foo 1. Foo. Baz 1. Baz. I get: Baz 1. Foo. Baz 1. Baz. How can I work around this problem? \documentclass{article} \usepackage{keytheorems} \ExplSyntaxOn \keys_define:nn { mymodule / nouveautheoreme } { titre .tl_set:N = \l__mymodule_nouveautheoreme_titre_tl } \cs_new_protected:Nn \__mymodule_nouveautheoreme:nn { \keys_set:nn { mymodule / nouveautheoreme } { #1 } \newkeytheorem{#2}[title=\l__mymodule_nouveautheoreme_titre_tl] } \RenewDocumentCommand{\nouveautheoreme}{O{} m}{ \__mymodule_nouveautheoreme:nn {#1} {#2} } \ExplSyntaxOff \nouveautheoreme[titre=Foo]{foo} \nouveautheoreme[titre=Baz]{baz} \begin{document} \begin{foo} Foo. \end{foo} \begin{baz} Baz. \end{baz} \end{document}
- Mutliple plots using raw gnuplot within pgfplotsby jak123 on February 2, 2026 at 1:36 pm
Why does this produce a broken .gnuplot code when compiled? I'm trying to plot the gamma function as segements. \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel={$x$}, ylabel={$\Gamma(x)$}, axis lines={ middle, }, every axis x label/.append style={ font=\footnotesize, at={(axis cs: 0,1)} }, every axis y label/.append style={ font=\footnotesize, at={(ticklabel cs: 1.05, 0)} }, xmin=-4, xmax=4, ymin=-15, ymax=15, restrict y to domain=-15:15, ] % \foreach[evaluate={\N=\n+1}] \n in {-4,...,0}{% \addplot gnuplot [ raw gnuplot, samples=555, smooth, id=myplot ] { plot \ [-4:-3] gamma(x) notitle, \ [-3:-2] gamma(x) notitle, \ [-2:-1] gamma(x) notitle, \ [-1: 0] gamma(x) notitle, \ [ 0: 4] gamma(x) notitle }; \end{axis} \end{tikzpicture} \end{document} Output: set format "%.7e";; plot \ [-4:-3] gamma(x) notitle, \ [-3:-2] gamma(x) notitle, \ [-2:-1] gamma(x) notitle, \ [-1: 0] gamma(x) notitle, \ [ 0: 4] gamma(x) notitle
- Bug or feature: unexpected behavior of \bar with subscript first and superscript secondby user470904 on February 2, 2026 at 1:28 pm
As a physicist, I often need to typeset tensor indices where it matters whether the subscript is to the left or to the right of the superscript. My usual solution is to use {t_A}^B, which puts the superscript B to the right of the subscript A, compared to t_A^B which puts the superscript B vertically aligned with the subscript A. However, I recently noticed that if I use \bar{t} or \tilde{t} instead of t above, the output no longer differs whether I enclose the (xxx)_A part with braces or not. But, \overline{t} still behaves as I expect. Then I tried \widetilde{t}, which still ignores the braces. Is this a bug or a feature? If it's a feature, how should I classify which commands ignore the braces and which do not? In particular, is there a "tilde" command that behaves like \overline that can put the superscript to the right of the subscript? Minimal working example: \documentclass{article} \begin{document} \begin{equation} \begin{array}{lllll} t_A^B & \tilde{t}_A^B & \widetilde{t}_A^B & \bar{t}_A^B & \overline{t}_A^B \\ {t_A}^B & {\tilde{t}_A}^B & {\widetilde{t}_A}^B & {\bar{t}_A}^B & {\overline{t}_A}^B \end{array} \end{equation} \end{document} Output:
- new glossary style based on tabularx does not workby user2609605 on February 2, 2026 at 1:09 pm
Following MnWE: documentclass[a4paper]{article} \overfullrule=10mm \usepackage{xltabular} \usepackage{geometry} \usepackage[record]{glossaries-extra} \usepackage{glossary-long} \GlsXtrLoadResources[ src={animals},% bib files selection={all}% select all entries ] \title{Glossaries are difficult} \author{E. Gloss} \date{\today} \newglossarystyle{xxlong}{% \setglossarystyle{long}% \renewenvironment{theglossary}% {\begin{tabularx}{\linewidth}{lX}}%[l] {\end{tabularx}}% % \renewcommand*{\glossaryheader}{}% % \renewcommand*{\glsgroupheading}[1]{}% % \renewcommand{\glossentry}[2]{% % \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} & % \glossentrydesc{##1}\glspostdescription\space ##2\tabularnewline % }% % \renewcommand{\subglossentry}[3]{% % & % \glssubentryitem{##2}% % \glstarget{##2}{\strut}\glossentrydesc{##2}\glspostdescription\space % ##3\tabularnewline % }% % \ifglsnogroupskip % \renewcommand*{\glsgroupskip}{}% % \else % \renewcommand*{\glsgroupskip}{ & \tabularnewline}% % \fi } \begin{document} \maketitle This document is experimental to find a new glossary style adapted to the needs of a customer. \begin{xltabular}{\linewidth}{lX} abbrev & Here come typically very long explanations. \\ AFD & organization of criminals telling that they save Germany and that they are an alternative to established parties. \\ \end{xltabular} %\chapter{Introduction}\label{chap:intro} The \gls{cat} loves the \gls{mouse} and hates the \gls{dog}. \printunsrtglossary[style={xxlong}] \end{document} with animals.bib: @entry{cat, name={cat}, description={Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. } } @entry{mouse, name={mouse}, description={Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. } } @entry{dog, name={dog}, description={Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. } } Maybe you see that I wanted to adapt the glossarystyle long replacing longtable by xltabular. I tried out as a table first without using it to format a glossary, i.e. \printunsrtglossary[style={xxlong}] commented out. This seems to work fine. Means no errors and the output as expected: using the whole linewidth, table column for term fitting the need description takes up the rest of the space Perfect. (well, almost, later I want term bold face) Then I tried to compile with glossary. First lualatex run works fine still, clear because no glossary is printed only the headline. But second run of lualatex after bib2gls fails: Runaway argument? ! File ended while scanning use of \TX@get@body. <inserted text> \par <*> test2 ? Interesting: if I endow with position specifier begin{tabularx}[l]{\linewidth}{lX} the error changes: ! Missing number, treated as zero. <to be read again> [ l.72 \printunsrtglossary[style={xxlong}] ? ! Illegal unit of measure (pt inserted). <to be read again> [ l.72 \printunsrtglossary[style={xxlong}] ? ) Runaway argument? ! File ended while scanning use of \TX@get@body. <inserted text> \par <*> test2 ? Who can explain or even better: help.
- Texmaker crashes every time a file dialog is openedby Dimitrios ANAGNOSTOU on February 2, 2026 at 11:11 am
I suddenly (completely out of the blue) started experiencing this problem. Every time I go to: File → Open File → Save As File → New by copying an existing file —that is, essentially anything that would open a file dialog—the program crashes. I’ve tried uninstalling and reinstalling Texmaker, but the problem persists. Does anyone have any ideas on how to fix this? I am using Windows 11. May be this question is relevant to my problem. https://www.reddit.com/r/LaTeX/comments/1qq92nh/texmaker_crashes_whenever_a_file_dialogue_is/
- Font settings for lualatex and pdflatexby Thomas F. Sturm on February 2, 2026 at 9:44 am
I am a pdflatex user, but I would like to have the option to use lualatex as well. This worked for me for documents without font settings, but I run in problems as soon as font settings are involved, especially for mathematics. The following test document contains settings I use with pdflatex, namely (X)Charter for rmfamily SourceSansPro for sffamily LatinModernMono for ttfamily with light for normal text Times (something) for mathematics Further settings for mathematics for bb, frac, cal, scr My goal is to have the same output (or nearly the same) for the following test document for lualatex and pdflatex: % !TeX encoding=UTF-8 % !TeX spellcheck=de_DE_frami % !TeX program=arara % !arara: pdflatex % arara: lualatex \documentclass[a4paper,12pt]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage[ngerman]{babel} \RequirePackage{array,microtype} \PassOptionsToPackage{intlimits}{amsmath} \RequirePackage{iftex} \iftutex% lualatex \RequirePackage{fontspec} \setmainfont{XCharter}[Scale=0.98,sups] \setmonofont{Latin Modern Mono}[Scale=1.05] \setsansfont{SourceSansPro} %\usepackage[otfmath,vvarbb,mathscale=1.05]{newtx} %\usepackage{unicode-math} %\setmathfont{TeX Gyre Termes Math}[Scale=1.05] \else% pdflatex \RequirePackage[T1]{fontenc} \RequirePackage[scaled=.98,sups]{XCharter} \RequirePackage[scaled=1.05,light]{zlmtt} \RequirePackage[type1]{sourcesanspro} \RequirePackage[vvarbb,scaled=1.05]{newtxmath} \fi \RequirePackage[ cal=cm,calscaled=.94, bb=ncmbbk, frak=euler,frakscaled=.97, scr=boondox ]{mathalpha} \RequirePackage{empheq} \RequirePackage{pifont} \RequirePackage{geometry} \RequirePackage{fancyhdr} \RequirePackage{parskip} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \makeatletter \ExplSyntaxOn \NewDocumentCommand \familyname {} { \str_set:NV \l_tmpa_str \f@family \texttt{ \str_use:N \l_tmpa_str } } \ExplSyntaxOff \makeatother %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} Dies ist ein Testtext, der über jedes Maß hinaus höflich ähnliches Verhalten wünscht. \begin{equation} f(x) = \lim\limits_{t\to\infty} \int_0^t \frac{\sin(\alpha\cdot x)}{\gamma\cdot x^2} dr, \quad x\in \mathbb{R}^+,\quad z\in \mathbb{C}, \quad f\in\mathcal{C}^{\infty}(\mathbb{R}). \end{equation} \textit{f}$f$ Test \ifdefined\textfrac \textfrac{1}{2} \fi Test {\ttfamily Typewriter: light(ß) {\fontseries{m}\selectfont medium(ß)} \textbf{bold(ß)} } \begin{tabular}{|p{2cm}p{5cm}p{4cm}|}\firsthline rmfamily & \rmfamily\familyname & \rmfamily Test äöüÄÖÜ߀\\ sffamily & \sffamily\familyname & \sffamily Test äöüÄÖÜ߀\\ ttfamily & \ttfamily\familyname & \ttfamily Test äöüÄÖÜ߀\\\hline \end{tabular} \end{document} With pdflatex, this gives: With lualatex, I have so far: light, medium, and bold settings for typewriter do not work (all is medium) font settings for mathematics do not work at all. I figured out no working settings using newtxmath, newtx, unicode-math, etc. I would like to keep addons like \textfrac etc. coming from newtx(math). I hope, some lualatex expert can help me with correcting my probably dumb settings to get all fonts working for lualatex.
- Internal hyperlinks after merging PDFs - beamer / beamerposterby YamiOmar88 on February 2, 2026 at 9:04 am
I am creating two versions (same but two languages) of a beamer / beamerposter using the following Overleaf template: https://www.overleaf.com/latex/templates/yet-another-beamerposter-theme-with-variable-sizes-and-colour-themes-landscape/tcwvmhjsfbdk I have slightly modified the .tex and .sty files to fit my particular purpose. In the header, I'm adding links with the hope that once I merge the two files, the user can just click a link and go to the page where the right version of the poster in the appropriate language is located. In my .tex file it looks like this, thanks to the modified .sty that I created: \toplinks{% {\usebeamercolor{title in headline}\color{fg} \href{page.1}{\textbf{FR}} \quad \href{page.2}{DE}} } However, if I click on the hyperlink in the merged file (output.pdf), it tries to open another PDF (FR.pdf or DE.pdf) file instead of jumping to the right page. I also tried using \hyperlink and \hypertarget, but once I merge the files, only the forward link (the one to DE) works. Once I am in the DE page, the FR link won't do anything. \toplinks{% {\usebeamercolor{title in headline}\color{fg} \hyperlink{fr-version}{\textbf{FR}} \quad \hyperlink{de-version}{DE}} } Is there any way I can create links on the original FR.tex and DE.tex files, so that when I merge the two PDFs into output.pdf, the links work? If not, what alternative is there? Is there any way to make a two page beamerposter?
- How to define a \tcbhighmath type command that works both for inline and display math?by Jinwen on February 2, 2026 at 7:37 am
Consider the following example: Here I separately defined a style (with different spacing around) for inline and display math. Is it possible to define an automatic version, so as to use the inline style in inline equation, and the display style in displayed equation? \documentclass{article} \usepackage[many]{tcolorbox} \begin{document} \tcbset{highlight math style={empty,sharp corners,borderline={.4pt}{0pt}{black!16.67},left=0pt,right=0pt,top=0pt,bottom=0pt,extrude left by=-1pt,extrude right by=-1pt,extrude top by=0pt,extrude bottom by=0pt,boxsep=\fboxsep}} Some text \( \tcbhighmath{x^2 + y^2 = 1} \). \tcbset{highlight math style={empty,sharp corners,borderline={.4pt}{0pt}{black!16.67},left=0pt,right=0pt,top=0pt,bottom=0pt,extrude left by=3pt,extrude right by=3pt,extrude top by=3pt,extrude bottom by=3pt,boxsep=\fboxsep}} \[ \tcbhighmath{ x^2 + y^2 = 1. } \] \end{document}
- Error Latexmk: Recipe terminated with error and Set LaTeX formatterby user516076 on February 2, 2026 at 1:44 am
this is my first time of using LaTex in Visual Code. I used to work on TexStudio, since I didn't use Windows anymore, and I use ChromeOS (Linux based) with low ram, it can only install the visual code, so I'm a bit confused with the first start up in Visual code. I used the extension by James Yu. when I compile the code: \documentclass{article} \usepackage{pgfplots} \begin{document} \pgfplotsset{ compat=1.18, compat/path replacement=1.5.1, } \begin{tikzpicture} \begin{axis}[ extra x ticks={-2,2}, extra y ticks={-2,2}, extra tick style={grid=major}] \addplot {x}; \draw (axis cs:0,0) circle[radius=2]; \end{axis} \end{tikzpicture} \end{document} it gives me these errors: [{ "resource": "/home/shandy_verdyo/Latihan/LaTeX/main.tex", "owner": "LaTeX", "severity": 8, "message": "Emergency stop.\n<*> /home/shandy_verdyo/Latihan/LaTeX/main.tex", "source": "LaTeX", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 65536, "modelVersionId": 293, "origin": "extHost2" },{ "resource": "/home/shandy_verdyo/Latihan/LaTeX/main.tex", "owner": "LaTeX", "severity": 8, "message": " ==> Fatal error occurred, no output PDF file produced!\nTranscript written on main.log.\nLatexmk: Getting log file 'main.log'\nLatexmk: Examining 'main.fls'\nLatexmk: Examining 'main.log'\nLatexmk: Errors, so I did not complete making targets\nCollected error summary (may duplicate other messages):", "source": "LaTeX", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 65536, "modelVersionId": 293, "origin": "extHost2" },{ "resource": "/home/shandy_verdyo/Latihan/LaTeX/main.tex", "owner": "LaTeX", "severity": 8, "message": "Missing \\begin{document}.", "source": "LaTeX", "startLineNumber": 15, "startColumn": 1, "endLineNumber": 15, "endColumn": 65536, "modelVersionId": 293, "origin": "extHost2" }] These are the visual errors: I don't know what to do, and what to set. The code can be viewed, though. It's just I'm losing my focus with those noise notifications (Please, apologies my ADHD). I tried to turn it off by clicking the gear and turn off the notifications, but didn't work.
- How to place two photos aligned in the left and right of the headline?by Learner on February 2, 2026 at 12:57 am
I am making a conference poster. I want to add a photo on the left and a photo on the right of the headline. I have written the following source code: \documentclass[12pt]{article} \usepackage[a4paper,margin=1.5cm]{geometry} \usepackage{setspace} \usepackage{graphicx} \usepackage{amsmath,amssymb} \usepackage{enumitem} \usepackage{ragged2e} \usepackage{titlesec} \usepackage{xcolor} \usepackage{pagecolor} % Background and text colors \definecolor{instblue}{HTML}{E9F0F8} \pagecolor{instblue} \color{black} \pagestyle{empty} % Section style \titleformat{\section}{\large\bfseries\color{blue}}{}{0pt}{} \begin{document} \noindent \begin{minipage}[t]{0.18\textwidth} \raggedright \includegraphics[width=0.9\linewidth]{DHU_logo.png} \end{minipage} \hfill \begin{minipage}[t]{0.58\textwidth} \centering {\Large \textbf{A Two-Day Workshop and Conference in Mathematics}}\\[0.2cm] {\Large \textbf{Honoring Srinivasa Ramanujan}}\\[0.4cm] {\large \textbf{May 4--5, 2026}}\\ {\large \textbf{Venue:} Darjeeling Hills University}\\ {\normalsize ITI Building, Mungpoo, Darjeeling,}\\ {West Bengal, India -- 734313} \end{minipage} \hfill \begin{minipage}[t]{0.18\textwidth} \raggedleft \includegraphics[width=0.9\linewidth]{ramanujan.jpg} \end{minipage} \vspace{0.6cm} \section*{About the Event} \justifying This two-day workshop and conference is organized in honor of the remarkable contributions of \textbf{Srinivasa Ramanujan} to mathematics. The event aims to promote academic interaction among researchers, faculty members, and students, and to encourage participation from diverse and emerging academic regions. Certificates will be issued to participants for academic and professional purposes. \vspace{0.4cm} \begin{minipage}[t]{0.48\textwidth} \section*{Invited Speakers} \begin{itemize}[leftmargin=1.2cm] \item Professor 1 \item Professor 2 \item Professor 3 \end{itemize} \end{minipage} \hfill \begin{minipage}[t]{0.48\textwidth} \section*{Scientific Committee} \begin{itemize}[leftmargin=1.1cm, itemsep=2pt] \item Professor 1 \item Professor 2 \item Professor 3 \end{itemize} \end{minipage} \vspace{0.3cm} \begin{minipage}[t]{0.40\textwidth} \section*{Paper Presentation} \justifying PhD scholars and Faculty members are invited to present their research papers for certificate purposes. Interested participants should submit an \textbf{abstract} to: \texttt{email@example.com} \end{minipage} \hfill \begin{minipage}[t]{0.48\textwidth} \section*{Registration and Participation} \begin{itemize}[leftmargin=1.2cm] \item \textbf{Registration Link:} Fill the google form \item \textbf{Registration fee:} None \end{itemize} \end{minipage} \vspace{0.3cm} \noindent \begin{minipage}[t]{0.48\textwidth} \section*{Organizing Committee} \begin{itemize}[leftmargin=1.1cm, itemsep=2pt] \item Professor 1 (Convener) \item Professor 2 \item Professor 3 \end{itemize} \end{minipage} \hfill \begin{minipage}[t]{0.48\textwidth} \section*{Accommodation Support} \justifying Limited accommodation is available for participants. Allocation will be on a first-come, first-served basis. Free lunch and tea will be provided to all participants with preference to outstation candidates. \end{minipage} \section*{Contact Person:} name, phone and email to be given \end{document} The out is the following: You can see that left hand photo (University logo) and the right hand photo (Ramanujan photo) are not aligned with the headline. How to do it nicely? Also suggests for better poster. Thanks
- Bug with multicolsby Math Attack on February 1, 2026 at 11:00 pm
I wrote a .pdf of 250 pages with 350 images. Normally I write in a single .tex for my convenience, but now it's becoming unmanageable because it's excessively long (about 1.5 million characters) and I have to work on it with someone else so I wanted to separate it into chapters. Context Schematically, .tex is now structured like this: \part{A} \begin{multicols}{2} %<<<< \section{A.1} text of A.1 \section{A.2} text of A.2 ... \section{A.9} text of A.9 \end{multicols} %<<<< % other parts I wrote 9 file .tex with all the sections and used \import{sectionA1.tex} ... \import{sectionA9.tex} in a main.tex Problem In section A5 I had to break the multicols command to insert a very long array that didn't fit in one column, but in 2. This didn't cause any problems in the single file; the problem is that it causes bugs when separating the files. In practice, the sectionA5.tex file looks like this: % no \begin{document} or macros, only text and images text, images, text, images,... \end{multicols} \[\begin{array}...\end{array}\] \begin{multicols}{2} text, images, text, images,... % no \end{document} The compiler says it can't find the images beyond the new \begin{multicols}{2} command. Solution I found Solution 1 I found two solutions to this thing (to make it compile), but they both have problems: Start all sectionAX.tex files with \begin{multicols}{2} and end them with \end{multicols} Problem for solution 1 This solution changes the way I lay out my pages; instead of having a continuous column, it breaks them down the middle of the page, so maybe on the 1st column there's an internal part of section 1 and then the beginning of section 2, and on the second column there's the end of section 1 and the internal part of section 2 (the correct version should be that on the first column there's the end of section 1 and the beginning of section 2, while on the 2nd column there's the middle of section 2). Solution 2 Add the full path to the images. I wrote the all path in the .tex \includegraphics[scale=1]{C:/Users/MyName/Desktop/Project/PartA/SectionA5/ImgSectionA5/NameImg.png} Problem for solution 2 This is the best solution we've found so far; the problem is that if you change your computer, or simply change the folder name or anything else that changes the path, you have to change every path, which isn't feasible (and generally limits the ease of sharing). Question Does anyone know how to fix this? Maybe not using \import but something else.
- Want glossaries style based on longtable covering the whole linewidthby user2609605 on February 1, 2026 at 10:43 pm
The requirement is from styleguide of my company. It means that in glossaries, abbreviation lists, the short form is in the 1st column, the description is in the 2nd column. The descriptions start one below the other. Sometimes descriptions are quite long. I saw ragged end and block. But always the two columns span over the whole linewidth. I tried with several styles but without success, every style seems to lead to quite short lines. I show you some of my trials \documentclass[a4paper]{article} \overfullrule=10mm \usepackage{geometry} \usepackage[record]{glossaries-extra} \usepackage{glossary-long} \usepackage{glossary-longragged} \usepackage{glossary-super} \usepackage{glossary-superragged} \GlsXtrLoadResources[ src={animals},% bib files selection={all}% select all entries ] \title{Glossaries are difficult} \author{E. Gloss} \date{\today} \begin{document} \maketitle %\chapter{Introduction}\label{chap:intro} The \gls{cat} loves the \gls{mouse} and hates the \gls{dog}. \setlength{\LTleft}{0pt} \setlength{\LTright}{0pt} \printunsrtglossary[style={superragged}] \end{document} The animals.bib is unspectacular: @entry{cat, name={cat}, description={Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. Animal that loves mouse and hates dog. } } @entry{mouse, name={mouse}, description={Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. Beloved playmate for cat. } } @entry{dog, name={dog}, description={Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. Most superfluous animal. } } I wonder a bit that the long style although based on longtable does not cover the whole line as longtable does. Even trying to set \LTleftand \LTright to zero does not change anything. Maybe I need to create my own style but.. this is far beyond my skills....
- Spacing with mathematical symbols in braketsby Danya Zh on February 1, 2026 at 9:38 pm
In the braket package I have noticed a spacing issue with mathematical operators; plus and minus symbols after | will be treated as binary operators, even if they represent an ordinary operator. For example $\braket{+45|+45}$ will have no spacing for the first + symbol (treated as class 0), but will have the operator spacing for the second + symbol (treated as class 2). \documentclass{article} \usepackage{braket} \begin{document} How can we fix spacing in $\braket{+45|+45}$ without invoking \verb+\!+ \end{document} I would like to have a solution that does not involve inline spacing fixes. I am confident that the command can be redefined in a way that would resolve this issue.
- Printing blank pages from TexStudioby Ramon A. Mata-Toledo on February 1, 2026 at 8:20 pm
All of a sudden, I cannot print the PDF from TexStudio even user external viewer. I can print on TexShop with no problem. I could change but I like TexStudio. Any suggestion?
- Put exercises and solutions into resizable boxes (question and answer on separate pages)by palloc on February 1, 2026 at 5:32 pm
I have the following LaTeX code. In Hungarian, Kérdés means Question and Válasz means Answer. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[hungarian]{babel} \usepackage{xsim} \DeclareExerciseType{question}{ exercise-env = question, solution-env = answer, exercise-name = Kérdés, solution-name = Válasz, exercise-template = default, solution-template = default } \xsimsetup{solution/print=false} \begin{document} \section*{Kérdések} \begin{question} Mi $2+2$? \end{question} \begin{answer} $2+2=4$. \end{answer} \begin{question} Mennyi $\sqrt{16}$? \end{question} \begin{answer} $\sqrt{16}=4$. \end{answer} \begin{question} Mennyi $5^2$? \end{question} \begin{answer} $5^2=25$. \end{answer} \newpage \section*{Válaszok} \ForEachUsedExerciseByOrder{% \XSIMprint{exercise}{#1}{#2} \XSIMprint{solution}{#1}{#2} } \end{document} First page Second page On the first page I want to print only the questions, and on the second page I print the questions again together with their answers (as shown in the screenshots below). The code works. However, I would like to put the content into framed boxes: On the first page, each question should be inside a box. On the second page, the question and its answer should be inside a box (one combined box see the example screenshots). The boxes should automatically expand if a question or answer spans multiple lines. How can I do this with xsim, I open to use any other package as well? First page Second page
- How to transform canvas with `grid` and not to affect the `node`'s content at the same time?by Explorer on February 1, 2026 at 5:24 pm
Description As the successor of my prevoius not-supported l3draw attempt, I try with plain-tikz: \documentclass[tikz,border=5pt]{standalone} \usepackage{mathpazo} \usepackage{amsmath} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[line cap=round] \clip (-.5,-.5) rectangle (4.5,4.5); \begin{scope}[ x={(1.5cm,0.5cm)}, y={(0.5cm,2cm)}, ] \fill[orange!10] (-2,-2) rectangle (5,5); \draw[orange] (-2,-2) grid (5,5); \draw[orange,ultra thick,-Stealth] (0,0) -- +(1,0) node[below] {$\mathbf{b_1}$}; \draw[orange,ultra thick,-Stealth] (0,0) -- +(0,1) node[below left] {$\mathbf{b_2}$}; \draw[black,ultra thick,-Stealth] (0,0) -- +(1,1) node[right] {$\mathbf{x}$}; \end{scope} \end{tikzpicture} \begin{tikzpicture}[line cap=round] \clip (-.5,-.5) rectangle (4.5,4.5); \begin{scope}[x={(1.5cm,0.5cm)}, y={(0.5cm,2cm)}] \fill[orange!10] (-2,-2) rectangle (5,5); % \draw[orange] (-2,-2) grid (5,5); \foreach \i in {-2,-1,...,5} {\draw[orange] (\i,-2) -- ++(0,7) (-2,\i) -- ++(7,0);} \draw[orange,ultra thick,-Stealth] (0,0) -- +(1,0) node[below] {$\mathbf{b_1}$}; \draw[orange,ultra thick,-Stealth] (0,0) -- +(0,1) node[below left] {$\mathbf{b_2}$}; \draw[black,ultra thick,-Stealth] (0,0) -- +(1,1) node[right] {$\mathbf{x}$}; \end{scope} \end{tikzpicture} \begin{tikzpicture}[line cap=round] \clip (-.5,-.5) rectangle (4.5,4.5); \begin{scope}[ transform canvas={cm={1.5, 0.5, 0.5, 2, (0,0)}} ] \fill[orange!10] (-2,-2) rectangle (5,5); \draw[orange] (-2,-2) grid (5,5); \draw[orange,ultra thick,-Stealth] (0,0) -- +(1,0) node[below] {$\mathbf{b_1}$}; \draw[orange,ultra thick,-Stealth] (0,0) -- +(0,1) node[below left] {$\mathbf{b_2}$}; \draw[black,ultra thick,-Stealth] (0,0) -- +(1,1) node[right] {$\mathbf{x}$}; \end{scope} \end{tikzpicture} \end{document} Here, I have three proposals: FIRST: the grid doesn't transform by x={(1.5cm,0.5cm)}, y={(0.5cm,2cm)}. SECOND: the manual \foreach gives what I want, but I don't think manually mimic what feature grid do is the best practice. THIRD: with transform canvas, it affected the grid, but all on the canvas, the text and arrow are both sheared, that is not I want. Question: Is there better approach without manually plot the grid? I would make good use of feature grid in my case as possible.
- In 2026, what kind of plot requirement is suitable with `l3draw`(such as "arrow")?by Explorer on February 1, 2026 at 3:38 pm
I want to mimic the following figure with l3draw, the \draw_transform_matrix:nnnn feature to apply transformation matrix. Here below is my attempt: \documentclass[border=5pt]{standalone} \usepackage{l3draw} \usepackage{amsmath} \begin{document} \ExplSyntaxOn \draw_begin: \color_set:nnn { orange } {RGB} {255, 128, 0} \draw_scope_begin: \draw_transform_matrix:nnnn { 2.5 } { 0.5 } { 0.5 } { 3 } \draw_set_cap_round: \draw_path_rectangle_corners:nn { -5mm , -5mm } { 35mm , 35mm } \color_fill:n { orange!15 } \draw_path_use_clear:n { fill } \draw_path_grid:nnnn { 1cm } { 1cm } { -5mm , -5mm } { 35mm , 35mm } \color_stroke:n { orange } \draw_path_use_clear:n { stroke, fill } \draw_set_linewidth:n { .1cm } \draw_path_moveto:n { 0cm, 0cm } \draw_path_lineto:n { 0cm, 1cm } \draw_path_use_clear:n { stroke } \draw_path_moveto:n { 0cm, 0cm } \draw_path_lineto:n { 1cm, 0cm } \draw_path_use_clear:n { stroke } \color_stroke:n { black } \draw_path_moveto:n { 0cm, 0cm } \draw_path_lineto:n { 2cm, 2cm } \draw_path_use_clear:n { stroke } \draw_scope_end: \draw_end: \ExplSyntaxOff \end{document} My question is: Is that possible to plot the image of "arrow" in l3draw's code framework? In 2026, when to choose l3draw? (I found that there are only 17 posts on this site was tagged l3draw since now) By reading the post on this site, l3draw is more used to constuct symbols(without arrow), or apply some transformations with l3box.... (Notes: I don't think my second question is a quite different one, in my state now, it's quite natural to ask if some features didn't provide by l3draw, while I have written the code shown above) Edited: Since Joseph has commented that: Currently arrows are not implemented, partly as I've not had a need to do it - the priority is really to get the code stable ATM I still wonder what kind of plotting requirement is suitable to play with l3draw in the current state(2026.02)?
- Tagging of \sqrt with and without unicode-mathby imnothere on February 1, 2026 at 2:10 pm
In this MWE to be compiled with LuaLaTeX for MathML structure tagging, when the math expression contains a\sqrt, an extra node Marked content on page 1: √ is produced in the tagged output: \DocumentMetadata{lang=en, tagging=on, tagging-setup={math/setup=mathml-SE}, pdfstandard=ua-2} \documentclass{article} % \usepackage{unicode-math} % \usepackage{lua-unicode-math} \begin{document} $ \sqrt{x} $ \end{document} And the derived HTML produced by ngPDF would show the extra √ . The extra √ won't appear in the tagged output if unicode-math is loaded: But loading lua-unicode-math doesn't remove the extra √. Is this a bug in the current tagging code, or is there a more proper way of typesetting/tagging square roots, with or without (lua-)unicode-math?
- Best way to structure .sty filesby palloc on February 1, 2026 at 1:51 pm
I’m wondering what the best practice is for organizing a main.tex file: should I put custom settings into one .sty file, or split them across multiple .sty files? For example, I have a block of code that customizes the table of contents, the list of figures/tables, and caption formatting. For readability, I’m considering moving it into a separate style file, e.g. toc_lof_lot_caption.sty, so that main.tex stays clean. So I format this: % Source - https://tex.stackexchange.com/a/758901 % Posted by taiwan12 % Retrieved 2026-02-01, License - CC BY-SA 4.0 \documentclass[11pt]{report} \usepackage[magyar]{babel} \usepackage{geometry} \usepackage{graphicx} \usepackage{parskip} \usepackage{float} \usepackage{setspace} \usepackage[colorlinks]{hyperref} % Caption settings: disable chapter-based numbering for figures and tables \usepackage{caption} \captionsetup{figurewithin=none} \captionsetup{tablewithin=none} % Caption label formatting: "1. ábra: ..." instead of "Figure 1" \captionsetup[figure]{labelsep=colon} % Caption label formatting: "1. táblázat: ..." instead of "Table 1" \captionsetup[table]{labelsep=colon} % Package for customizing TOC / LOF / LOT formatting \usepackage{tocloft} % -------------------------------------------------- % Combine list of figures and list of tables % -------------------------------------------------- \makeatletter \let\ext@table\ext@figure % Make tables use the same file extension as figures (so they appear in the same list) \newcommand{\listoffigsandtabs}{% \clearpage % Start on a new page \phantomsection % Create anchor for hyperref \addcontentsline{toc}{chapter}{Ábrák és táblázatok jegyzéke} % Add entry to TOC \renewcommand{\listfigurename}{Ábrák és táblázatok jegyzéke} % Rename list title \listoffigures % Print combined list } \makeatother % -------------------------------------------------- % Formatting of TOC and List of Figures/Tables entries % -------------------------------------------------- \makeatletter % -------------------------------------------------- % Customize chapter entries in the Table of Contents % Format: "1. Fejezet: Title" % -------------------------------------------------- \let\oldl@chapter\l@chapter % Save the original \l@chapter command \renewcommand*\l@chapter[2]{% Redefine how chapter entries appear in the TOC \begingroup % Start a local group so changes don’t leak outside \renewcommand*\numberline[1]{##1.\ Fejezet:\ \hspace{0.2em}}% % Redefine the number format: % ##1 = chapter number % Adds "Fejezet:" after the number % Adds a small horizontal space after it \oldl@chapter{#1}{#2} % Call the original TOC formatting with the new numberline \endgroup % End local group } % -------------------------------------------------- % Customize figure entries in the List of Figures % Format: "1 ábra: Caption" % -------------------------------------------------- \let\oldl@figure\l@figure % Save the original \l@figure command \renewcommand*\l@figure[2]{% Redefine how figure entries appear in the List of Figures \begingroup \renewcommand*\numberline[1]{% \makebox[6em][l]{##1\ ábra:}% % Creates a fixed-width box (6em) for the number + label % Left-aligned ("[l]") so all captions line up nicely }% \oldl@figure{#1}{#2} % Use the original formatting with the modified numberline \endgroup } % -------------------------------------------------- % Customize table entries in the List of Tables % Format: "1 táblázat: Caption" % -------------------------------------------------- \let\oldl@table\l@table % Save the original \l@table command \renewcommand*\l@table[2]{% Redefine how table entries appear in the List of Tables \begingroup \renewcommand*\numberline[1]{% \makebox[6em][l]{##1\ táblázat:}% % Fixed-width box for table number + label }% \oldl@table{#1}{#2} % Call the original formatting command \endgroup } \makeatother % -------------------------------------------------- % Visual spacing and alignment tweaks for lists % -------------------------------------------------- \setlength{\cftfigindent}{0pt} % No indentation for figure entries \setlength{\cfttabindent}{0pt} % No indentation for table entries \begin{document} \onehalfspacing \tableofcontents % Generate table of contents \listoffigsandtabs % Generate combined list of figures and tables \chapter{First} \section{First} \begin{figure}[H] \caption{First fig} \end{figure} \begin{table}[!ht] \caption{First tab} \end{table} \section{Second} \begin{table}[!ht] \caption{Second tab} \end{table} \chapter{Second} \begin{figure}[!ht] \caption{Second fig} \end{figure} \end{document} into this: main.tex \documentclass[11pt]{report} \usepackage[magyar]{babel} \usepackage{geometry} \usepackage{graphicx} \usepackage{parskip} \usepackage{float} \usepackage{setspace} \usepackage[colorlinks]{hyperref} \usepackage{toc_lof_lot_caption} \begin{document} \onehalfspacing \tableofcontents % Generate table of contents \listoffigsandtabs % Generate combined list of figures and tables \chapter{First} \section{First} \begin{figure}[H] \caption{First fig} \end{figure} \begin{table}[!ht] \caption{First tab} \end{table} \section{Second} \begin{table}[!ht] \caption{Second tab} \end{table} \chapter{Second} \begin{figure}[!ht] \caption{Second fig} \end{figure} \end{document} toc_lof_lot_caption.sty % Caption settings: disable chapter-based numbering for figures and tables \usepackage{caption} \captionsetup{figurewithin=none} \captionsetup{tablewithin=none} % Caption label formatting: "1. ábra: ..." instead of "Figure 1" \captionsetup[figure]{labelsep=colon} % Caption label formatting: "1. táblázat: ..." instead of "Table 1" \captionsetup[table]{labelsep=colon} % Package for customizing TOC / LOF / LOT formatting \usepackage{tocloft} % -------------------------------------------------- % Combine list of figures and list of tables % -------------------------------------------------- \makeatletter \let\ext@table\ext@figure % Make tables use the same file extension as figures (so they appear in the same list) \newcommand{\listoffigsandtabs}{% \clearpage % Start on a new page \phantomsection % Create anchor for hyperref \addcontentsline{toc}{chapter}{Ábrák és táblázatok jegyzéke} % Add entry to TOC \renewcommand{\listfigurename}{Ábrák és táblázatok jegyzéke} % Rename list title \listoffigures % Print combined list } \makeatother % -------------------------------------------------- % Formatting of TOC and List of Figures/Tables entries % -------------------------------------------------- \makeatletter % -------------------------------------------------- % Customize chapter entries in the Table of Contents % Format: "1. Fejezet: Title" % -------------------------------------------------- \let\oldl@chapter\l@chapter % Save the original \l@chapter command \renewcommand*\l@chapter[2]{% Redefine how chapter entries appear in the TOC \begingroup % Start a local group so changes don’t leak outside \renewcommand*\numberline[1]{##1.\ Fejezet:\ \hspace{0.2em}}% % Redefine the number format: % ##1 = chapter number % Adds "Fejezet:" after the number % Adds a small horizontal space after it \oldl@chapter{#1}{#2} % Call the original TOC formatting with the new numberline \endgroup % End local group } % -------------------------------------------------- % Customize figure entries in the List of Figures % Format: "1 ábra: Caption" % -------------------------------------------------- \let\oldl@figure\l@figure % Save the original \l@figure command \renewcommand*\l@figure[2]{% Redefine how figure entries appear in the List of Figures \begingroup \renewcommand*\numberline[1]{% \makebox[6em][l]{##1\ ábra:}% % Creates a fixed-width box (6em) for the number + label % Left-aligned ("[l]") so all captions line up nicely }% \oldl@figure{#1}{#2} % Use the original formatting with the modified numberline \endgroup } % -------------------------------------------------- % Customize table entries in the List of Tables % Format: "1 táblázat: Caption" % -------------------------------------------------- \let\oldl@table\l@table % Save the original \l@table command \renewcommand*\l@table[2]{% Redefine how table entries appear in the List of Tables \begingroup \renewcommand*\numberline[1]{% \makebox[6em][l]{##1\ táblázat:}% % Fixed-width box for table number + label }% \oldl@table{#1}{#2} % Call the original formatting command \endgroup } \makeatother % -------------------------------------------------- % Visual spacing and alignment tweaks for lists % -------------------------------------------------- \setlength{\cftfigindent}{0pt} % No indentation for figure entries \setlength{\cfttabindent}{0pt} % No indentation for table entries If I also have other style files such as table_mod.sty, figure_mod.sty, etc., is it a good idea to keep these as separate .sty files, or should I merge them into a single style file? What is the best advide
- Write the "gradings" under a mapby Jinwen on February 1, 2026 at 11:43 am
How should one write the term-by-term "grading" under the equation, as in the following pictures? There should be various ways to achieve this. But at least, I would like to know how to do this in the usual situation, and with tikz-cd. Here is an example code of the above two equations: \documentclass{article} \usepackage{mathtools,amssymb,tikz-cd} \def\A{\mathbb{A}} \begin{document} Situation 1 (2 places): \[ H_X \colon [X \times \A^1] \to [X] \] Situation 2 (3 places): \[ [U \cap V] \xrightarrow{[j']-[i']} [U] \oplus [V] \xrightarrow{[i]+[j]} [X] \] Situation 2' (with \texttt{tikz-cd}): \[ \begin{tikzcd}[column sep=large] {[U \cap V]} & {[U] \oplus [V]} & {[X]} \arrow["{[j']-[i']}", from=1-1, to=1-2] \arrow["{[i]+[j]}", from=1-2, to=1-3] \end{tikzcd} \] \end{document}
- Drawing a pulley systemby Fatai Bakare on February 1, 2026 at 8:32 am
I need to draw a pulley system as in the figure. How can I do that? Specific information about the figure: A block of mass Mo is on a horizontal surface and attached by a string to a hanging block, also of mass Mo , as shown in the figure. Friction between the block and the horizontal surface is negligible. The masses of the string and pulley are negligible, and the pulley can rotate with negligible friction around its axle.
- Redefine `\item` so its first "argument" is a full wordby mathbekunkus on February 1, 2026 at 5:37 am
I defined a Tikz macro and I want to use it so the item of an inline itemize is passed as its argument. So far, my solution is this: \documentclass{article} \usepackage[inline]{enumitem} \usepackage{tikz} \newcommand\itemvalue[1]{ \tikz[baseline=(o.base)] { \node[ inner xsep=0pt, inner ysep = 1pt, outer xsep=2pt, outer ysep=2pt ] (o) at (0,0) {\textcolor{blue!80!black}{\fontsize{10}{16}\textbf{#1}}}; \draw[color=gray!50, thick] ([xshift=(-1.3)]o.south west) -- ([xshift=(1.3)]o.south east); } } \begin{document} \let\olditem\item \renewcommand\item[1]{\olditem\itemvalue{#1}} \begin{itemize*}[label={}, labelsep=2em, parsep=2ex] \item {First} \item {Second} \item {Third} \end{itemize*} \end{document} The output looks like this: This is what I want but I was wondering if there was a way of redefining \item so it reads the full word (not only its first letter). If I remove the braces on each item, the output looks like this: This makes sense as far as I can tell how \item works, but I'd like a workaround that doesn't use braces on each item. Thanks!
- Wrapping a circle on a torusby M. Al Jumaily on February 1, 2026 at 4:19 am
I have used the sample code from latexdraw that draws a torus. I am trying to draw a filled circle and a dashed circle where they should be wrap around the torus instead of being drawn uniformly at z=0. I am looking for a TikZ solution. The closest I have seen is this solution but it is too difficult for me to decipher. Any help would be appreciated! \documentclass[margin=4pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage{tikz-3dplot} \usepgfplotslibrary{colormaps} \pgfplotsset{ compat=newest, colormap={manifoldmap}{color=(lightgray) color=(white) color=(lightgray)} } \begin{document} \begin{tikzpicture} \def\R{2.75} % Major radius (distance from torus centre to tube centre) \def\offset{0.5} % Radial displacement from the torus centre circle \def\thetaB{2.5} % Angular position (in radians) for highlighted point \begin{axis}[ width=12cm, axis equal image, hide axis, z buffer=sort, view={125}{35}, clip=false ] % Parametric torus equations: % x = (R + cos(x)) cos(y) % y = (R + cos(x)) sin(y) % z = sin(x) \addplot3[ surf, shader = faceted interp, samples = 30, samples y = 40, domain = 0:2*pi, domain y = 0:2*pi, colormap name = manifoldmap, thin, opacity=0.75 ] ( {(\R + cos(deg(x))) * cos(deg(y))}, {(\R + cos(deg(x))) * sin(deg(y))}, {sin(deg(x))} ); \begin{scope}[canvas is xy plane at z=0, transform shape] \coordinate (p) at ({(\R + \offset) * cos(deg(\thetaB))}, {(\R + \offset) * sin(deg(\thetaB))}); \draw[fill=red, draw=none] (p) circle (4pt); \draw[blue, dashed, thick] (p) circle (16pt); \end{scope} \end{axis} \end{tikzpicture} \end{document}
- The choice between pdflatex and xelatex, and the use of newcomputermodernby Ho Man-Ho on January 31, 2026 at 9:07 am
Let me provide some background for my question: I am compiling a latex project, which involves a main tex file and more than 100 other tex files with no figures (except for a few simple diagrams) or pictures. The resulting pdf file has more than 600 pages. Initially, I was using pdflatex and newtxtext for font. However, recently I am more inclined to use NewComputerModern, in particular I like the slightly thicker font. As we know, to use NewComputerModern, we must either use xelatex or luatex. I chose xelatex because it seems to be slightly faster than using luatex, but it is slower than pdflatex. So I ended up spending more time for compilation, especially when I am editing the tex files for the pages of the end of the pdf file. The packages I am using are: amsfonts, amsmath, amscd, amssymb, euscript, amsthm, fancyhdr, pgf, tikz, pgfplots, caption, subcaption, enumitem, thmtools, color, centernot, mathtools, afterpage, amsbsy, systeme, sectsty, multirow, float, tikz-cd, etoolbox, microtype, mathrsfs, fontspec, fncychap, xy, appendix My question is: is there any way to use NewComputerModern and get faster compilation? I want to minimize the time for compilation while keep looking at NewComputerModern rather than newtxtext. I considered using pdflatex and newtxtext during editing, and xelatex and NewComputerModern right before finish editing. But I think we should be able to do better than this.
- Best ways to calculate sums in LaTeXby cis on January 28, 2026 at 2:13 pm
In many computer algebra systems, one can sum a sequence of numbers using the syntax sum(a(k), k, kStart, kEnd) for a sequence a(k) (of real and integer values) with the variable k. What's the best and fastest way to do this with LaTeX? For example, when you want to calculate thousands of values for a table. I've developed a MWE using foreach and fpeval. \documentclass[margin=5pt, varwidth]{standalone} \usepackage{amsmath} \usepackage{tikz} \newcommand\Sum[4]{% \def\mysum{0}% \foreach #2 in {#3,...,#4}{% \def\psum{\fpeval{(#1)}}% \xdef\mysum{\fpeval{\mysum+\psum}}% }\mysum} \begin{document} Test 1: $\displaystyle\sum\limits_{k=1}^{100} k = \Sum{\k}{\k}{1}{100}$ \newcommand\binomial[2]{\fpeval{fact(#1)/(fact(#2)*fact(#1-#2))}} Test 2: $\displaystyle\sum\limits_{k=0}^{5} \dbinom{5}{k} = \Sum{ \binomial{5}{\k} }{\k}{0}{5} =2^5 = \fpeval{2^5}$ \end{document}