Hot
- Overleaf red dotted underline in source codeby STOBX on November 14, 2025 at 4:56 pm
how to get rid of the automated red dotted underline in the source code? It appears on every word. The language correction is set to american english in (overleaf´s) preferences. I am writing in combination Firefox/www.overleaf.com. I can imagine that there is a chance that firefox adds it from the browser´s perspective.
- How to draw disconnected nodes in a forest?by John Doe on November 14, 2025 at 4:05 pm
Suppose I have the following forest: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={ grow=east, parent anchor=east, child anchor=west, align=center, inner sep=2pt, l=1em, l sep+=0em, s sep=5pt, anchor=base west, outer sep=0pt, edge path={ \noexpand\path [draw, \forestoption{edge}] (!u.parent anchor) -- +(5pt,0) |- (.child anchor)\forestoption{edge label}; }, for root={ parent anchor=east, text width=3cm, }, } [{My Cool Taxonomy},child anchor=north, parent anchor=east, anchor=center [ First Child, [Charlie [Test9, draw=black, no edge], [Test8, draw=black, no edge], [Test7, draw=black, no edge], [Test6, draw=black, no edge], ] [Bravo, [Test5, draw=black, no edge], [Test4, draw=black, no edge], [Test3, draw=black, no edge], ], [Alpha,, [Test2, draw=black, no edge], [Test1, draw=black, no edge], ] ] ] \end{forest} \end{document} which produces the following output: How can I draw the third-level nodes (Test1, ..., Test9) next to each other without an edge while considering their respective level? These nodes should grow from east to west. My desired output would be:
- How to make a `\sloppy` environmentby Logos on November 14, 2025 at 3:48 pm
I have a tight constraint on the geometry of the page, which I cannot change, and I need to write, under, each chapter a list of topics that are inside the chapter. Some are too long and I have one line that presents an overfull of 1.38pt. Not being able to change the wording, I wanted to increase the tolerance. This is a MWE of what I have tried \documentclass{article} \newenvironment{content}{\bgroup\bfseries}{\egroup} \begin{document} \begin{content} This is an example. \end{content} \end{document} I wanted to put \sloppy only in the content, but it only works if I put it outside of the {content} environment. Ideally, I would like to do something like this: \documentclass{article} \newenvironment{content}{ \bgroup \sloppy \bfseries} {\egroup} \begin{document} \begin{content} This is an example. \end{content} \end{document} but the \sloppy command does nothing. Is there a way to fix this? Sorry for asking: I have been trying to discuss this with the AI but it doesn't seem to know LaTeX very well.
- Latex manuscript conversion failed when submitting to a Springer journalby Sjotroll on November 14, 2025 at 1:49 pm
I am trying to submit an article to a Springer journal. I used the official template found here. I compile the article without any problem. When I upload the .zip containing everything in my directory, I get an error saying: LaTeX manuscript conversion failed. We had a problem compiling your ZIP into a PDF. Please take note of the errors and upload a corrected file in the Files section The errors are: This is BibTeX, Version 0.99d (TeX Live 2025) Capacity: max_strings=200000, hash_size=200000, hash_prime=170003 The top-level auxiliary file: output.aux The style file: sn-vancouver-ay.bst Illegal, another \bibstyle command---line 90 of file output.aux : \bibstyle : {sn-vancouver-num.bst} I'm skipping whatever remains of this command Reallocated glb_str_ptr (elt_size=4) to 20 items from 10. Reallocated global_strs (elt_size=200001) to 20 items from 10. Reallocated glb_str_end (elt_size=4) to 20 items from 10. Reallocated wiz_functions (elt_size=4) to 6000 items from 3000. Database file #1: reference.bib sn-vancouver-ay.bst [2024/07/19 v1.1 bibliography style] Warning--empty author and editor in dhmzKlimatoloskiOsvrtNa2023 Warning--missing publisher in dhmzKlimatoloskiOsvrtNa2023 Warning--empty author and editor in usepaExtremePrecipitation2024 Warning--missing publisher in usepaExtremePrecipitation2024 Warning--empty author and editor in usgs535Km2020 Warning--missing publisher in usgs535Km2020 Warning--empty author and editor in usgs642Km2021 Warning--missing publisher in usgs642Km2021 `journal' is a missing field, not a string, for entry zugajVelikeVodeMalih2010 while executing---line 2077 of file sn-vancouver-ay.bst Warning--empty journal in zugajVelikeVodeMalih2010 Warning--empty author and editor in zzpugzProstorniPlanParka2014 Warning--missing publisher in zzpugzProstorniPlanParka2014 You've used 28 entries, 3637 wiz_defined-function locations, 986 strings with 13440 characters, and the built_in function-call counts, 38883 in all, are: = -- 4581 > -- 416 < -- 18 + -- 218 - -- 130 * -- 3280 := -- 4735 add.period$ -- 110 call.type$ -- 28 change.case$ -- 179 chr.to.int$ -- 27 cite$ -- 39 duplicate$ -- 3207 empty$ -- 3545 format.name$ -- 186 if$ -- 8612 int.to.chr$ -- 2 int.to.str$ -- 1 missing$ -- 256 newline$ -- 153 num.names$ -- 84 pop$ -- 489 preamble$ -- 1 purify$ -- 178 quote$ -- 0 skip$ -- 431 stack$ -- 0 substring$ -- 6503 swap$ -- 607 text.length$ -- 0 text.prefix$ -- 0 top$ -- 1 type$ -- 249 warning$ -- 11 while$ -- 230 width$ -- 0 write$ -- 376 (There were 2 error messages) The only thing I understand here are the warnings that there are no authors or editors for some bibliography entries, but they are just warnings and not errors. As I said, my manuscript compiles prefectly on my PC.
- How to color the circle line of Tikz nodes with radial gradient using the node definition \node[...] with the built-in option "color"?by user2379123 on November 14, 2025 at 12:44 pm
This is my code: \documentclass[margin=1mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[C/.style = {circle, draw, inner sep=5pt, node contents={}}] \node[shading = axis, circle, left color=blue, right color=red, shading angle=135] (a) [C]; \end{tikzpicture} \end{document} This is the output: I want to color the black circle line with the filled radial gradient. Normally, I would use the node definition \node[color=...] with the predefined option "color" to obtain the result. But it just seems to be working for single colors. How can I use this option for color gradients? Do you have any idea?
- Weird equation spacingby Pitou on November 14, 2025 at 12:30 pm
I’m running into an weird spacing issue. When I insert the Poisson equation using \begin{equation}, it appears much closer to the preceding text than I would expect. In comparison, when I add the finite-difference approximation of the second derivative also using \begin{equation}, the spacing looks beter. In both cases, there is no \par or blank line before the equation environment, so I’m not sure why LaTeX is treating them differently. Thanks! A new method, \texttt{ComputeField}, was added to solve Poisson’s equation (Equation~\eqref{eq:Poisson}) in the medium and update the resulting electric field accordingly. \begin{equation} \nabla^2 \phi = - \frac{\rho}{\varepsilon} \label{eq:Poisson} \end{equation} To discretize the Laplacian, we used central difference approximation of the second derivative. In one dimension, this results on the following formula: \begin{equation} f''(x) = \frac{f(x - h) - 2f(x) + f(x + h)}{h^2} \label{eq:discretized_Laplacian} \end{equation}
- Arabart package in not working at al on texlive 2024by Kernel on November 14, 2025 at 11:40 am
All, I am trying to use the arabart package to render Arabic fonts, but Arabic fonts are not produced at all (I got empty pdf file). I listed the package that I am using in case they are inconsistent with each other. Here is the latex code. \documentclass[12pt,a4paper]{arabart} %\usepackage[utf8]{inputenc} %\usepackage[arabic,english]{babel} \usepackage{graphicx} \usepackage{epstopdf} % explicitly in preamble \usepackage{float} \usepackage[caption = false]{subfig} \usepackage[most]{tcolorbox} \usepackage{tikz, adjustbox} \usepackage{fancyhdr} \usepackage[top=1in, left=0.8in, bottom=1.1in, right=0.8in]{geometry} \usepackage{csvsimple} \usepackage{booktabs} %% enables \csvcol \usepackage{xcolor} \usepackage{booktabs} \usepackage{csvsimple} \usepackage{colortbl,dcolumn} \usepackage{advdate} % for dates \usepackage[yyyymmdd]{datetime} %% \pagestyle{fancy} \setlength\headheight{48pt} %% to avoid the problem the main text goes over header %\parskip 1ex \begin{document} \tcbset{colback=blue!5!white,colframe=blue!75!black,fonttitle=\bfseries, width = 17cm} \begin{tcolorbox}[title = {(Air Quality Health Index-AQHI)} \raggedleft \RL{مؤشر جودة الهواء الصحى}] %oup, after=\egroup] \raggedleft % adjust the text from right to left \section*{\RL{مؤشر جودة الهواء الصحى}} \RL{مؤشر يقيس مدى جودة الهواء من خلال إعطاء معلومات عن مدى تلوث الهواء وما قد يسببه من الآثار الصحية السلبية التي قد يعاني منها الإنسان خلال الساعات أو الأيام القليلة بعد استنشاق الهواء الملوث، وذلك لأكثر ملوثات الهواء خطورة على الصحة : أكاسيد النيتروجين, ثاني أكسيد الكبريت, الأوزون، الجسيمات بقطر أقل من 5.2 ميكرون}\\ \RL{هو مؤشر يقيس مدى جودة الهواء وتاثيرها على صحة الانسان والنصائح الخاصة بكل حالة. فكلما قلت قيمة المؤشر كان ذلك دليل على جودة الهواء، وكلما زادت القيمة دل ذلك على زيادة تركيزات الملوثات والتى فى كثير من الأحيان تكون ناتجة من الأتربة والرمال المثارة نتيجة نشاط الرياح. } \end{tcolorbox} \end{document} Here is the log output This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./test.tex LaTeX2e <2023-11-01> patch level 1 L3 programming layer <2024-02-20> (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabart.cls Document Class: arabart 1996/05/21 v0.01 arabic article format (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabrep.cls Document Class: arabrep 2003/04/26 v3.11 arabic report format (/usr/local/texlive/2024/texmf-dist/tex/latex/base/report.cls Document Class: report 2023/05/17 v1.4n Standard LaTeX document class (/usr/local/texlive/2024/texmf-dist/tex/latex/base/size12.clo)) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabtex.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/aconfig.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabaux.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/acmd.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/afonts.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/afonts2.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/ascan.sty (ArabTeX) scanner for code `arabtex' installed. (ArabTeX) input encoding set to ArabTeX standard conventions.) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/aparse.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/awrite.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/xarbsymb.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabskel.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/xarbskel.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/aboxes.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabtoks.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabchrs.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/aligs.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/aoutput.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/abidir.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/atrans.sty (ArabTeX) ZDMG transliteration.) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/alatex.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/afoot.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/abjad.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/apatch.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/alists.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/asect.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/atabg.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/alocal.sty (ArabTeX) 3.11 local stub, 26.02.2006)) Arabic processor `ArabTeX' [20060702 patch level 3.11s (02.07.2006)] (ArabTeX) ... now be patient ... ) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/altxext.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/asize12.clo) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/arabext.sty))) (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-def/pdftex.def))) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/infwarerr/infwarerr.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/grfext/grfext.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/kvoptions/kvoptions.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty)) (/usr/local/texlive/2024/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))) (/usr/local/texlive/2024/texmf-dist/tex/latex/float/float.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/subfig/subfig.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/caption/caption3.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te x) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def ) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/pgf.revision.tex))) (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfil tered.code.tex)) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.d ef (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p df.def))) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath. code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol. code.tex)) (/usr/local/texlive/2024/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg) (/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx)) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex ) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code. tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic .code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo nometric.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando m.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa rison.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base. code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round .code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc. code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ erarithmetics.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex) ) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfint.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.co de.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconst ruct.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage .code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.co de.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicst ate.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransform ations.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.cod e.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.c ode.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathproce ssing.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.co de.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.cod e.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.cod e.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal. code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.co de.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretranspare ncy.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns. code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code. tex))) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.cod e.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code. tex) (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version -0-65.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version -1-18.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/verbatim.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/environ/environ.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex Library (tcolorbox): 'tcbraster.code.tex' version '6.2.0' ) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex Library (tcolorbox): 'tcbskins.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex) ) (/usr/local/texlive/2024/texmf-dist/tex/latex/pgf/math/pgfmath.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex)) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod e.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan dlers.code.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.cod e.tex) (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie s/tikzlibrarytopaths.code.tex))) (/usr/local/texlive/2024/texmf-dist/tex/latex/tikzfill/tikzfill.image.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/tikzfill/tikzfill-common.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/tikzfill/tikzlibraryfill.image.co de.tex)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex Library (tcolorbox): 'tcbskinsjigsaw.code.tex' version '6.2.0' )) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex Library (tcolorbox): 'tcbbreakable.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/pdfcol/pdfcol.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex Library (tcolorbox): 'tcbhooks.code.tex' version '6.2.0' ) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbtheorems.code.tex Library (tcolorbox): 'tcbtheorems.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbfitting.code.tex Library (tcolorbox): 'tcbfitting.code.tex' version '6.2.0' ) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.te x Library (tcolorbox): 'tcblistingsutf8.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex Library (tcolorbox): 'tcblistings.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/listings/listings.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstpatch.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstmisc.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/listings/listings.cfg)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcblistingscore.code.te x Library (tcolorbox): 'tcblistingscore.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbprocessing.code.tex Library (tcolorbox): 'tcbprocessing.code.tex' version '6.2.0' ))) (/usr/local/texlive/2024/texmf-dist/tex/latex/listingsutf8/listingsutf8.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/stringenc/stringenc.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/pdfescape/pdfescape.sty)))) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbexternal.code.tex Library (tcolorbox): 'tcbexternal.code.tex' version '6.2.0' ) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbmagazine.code.tex Library (tcolorbox): 'tcbmagazine.code.tex' version '6.2.0' ) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbvignette.code.tex Library (tcolorbox): 'tcbvignette.code.tex' version '6.2.0' (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie s/tikzlibraryfadings.code.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/pgf/libraries/pgflibraryfadings .code.tex))) (/usr/local/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbposter.code.tex Library (tcolorbox): 'tcbposter.code.tex' version '6.2.0' )) (/usr/local/texlive/2024/texmf-dist/tex/latex/adjustbox/adjustbox.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2024/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (/usr/local/texlive/2024/texmf-dist/tex/latex/adjustbox/adjcalc.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/adjustbox/trimclip.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/collectbox/collectbox.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/adjustbox/tc-pdftex.def)) (/usr/local/texlive/2024/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/varwidth/varwidth.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/geometry/geometry.sty (/usr/local/texlive/2024/texmf-dist/tex/generic/iftex/ifvtex.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/csvsimple/csvsimple.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/csvsimple/csvsimple-legacy.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/base/ifthen.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/shellesc.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/booktabs/booktabs.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/colortbl/colortbl.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/array.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/dcolumn.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/advdate/advdate.sty) (/usr/local/texlive/2024/texmf-dist/tex/latex/datetime/datetime.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/fmtcount/fmtcount.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/fmtcount/fcprefix.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/fmtcount/fcnumparser.sty))) (/usr/local/texlive/2024/texmf-dist/tex/latex/datetime/datetime-defaults.sty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) (./test.aux) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/local/texlive/2024/texmf-dist/tex/latex/base/inputenc.sty) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (/usr/local/texlive/2024/texmf-dist/tex/latex/fmtcount/fc-english.def) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/apatch.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/alocal.sty (ArabTeX) 3.11 local stub, 26.02.2006) (ArabTeX) version 3.11s (02.07.2006): second phase of patching) (/usr/local/texlive/2024/texmf-dist/tex/latex/arabtex/Uxnsh.fd) Overfull \hbox (1.82138pt too wide) in paragraph at lines 36--36 [] [1{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) *File List* arabart.cls 1996/05/21 v0.01 arabic article format arabrep.cls 2003/04/26 v3.11 arabic report format report.cls 2023/05/17 v1.4n Standard LaTeX document class size12.clo 2023/05/17 v1.4n Standard LaTeX file (size option) arabtex.sty 2003/08/22 3.11 ArabTeX main module arabaux.sty 2003/05/21 3.11 auxiliary macros for ArabTeX acmd.sty 2003/08/20 3.11 Arabic command processing afonts.sty 1995/11/16 3.04 define Naskh font afonts2.sty 1998/10/19 3.10 define Naskh fonts for LaTeX2e ascan.sty 2003/08/22 3.11 standard ZDMG input encoding aparse.sty 2003/05/26 3.11 get syllables awrite.sty 2003/06/05 3.11 build output word xarbsymb.sty 1998/07/15 3.07 symbolic output encoding arabskel.sty 2000/06/04 3.10 character skeleton definitions xarbskel.sty 1999/07/17 3.09 character skeleton definitions aboxes.sty 2003/05/28 3.11 build output boxes arabtoks.sty 1999/07/17 3.09 ArabTeX CS token definitions arabchrs.sty 1998/07/11 3.07 letter token definitions aligs.sty 2003/05/26 3.11 compute ligatures aoutput.sty 2000/06/04 3.10 build output lines abidir.sty 2003/08/22 3.11 bidirectional linebreaking atrans.sty 2003/06/14 3.11 generate the transliteration alatex.sty 2003/05/04 3.11 ArabTeX extensions for LaTeX afoot.sty 2003/05/12 3.11 ArabTeX footnotes abjad.sty 2003/04/26 3.11 abjad numerals apatch.sty 2006/07/02 3.11s last minute patches alists.sty 2003/04/26 3.11 inverted list macros asect.sty 2003/04/26 3.11 section macros for Arabic atabg.sty 1997/01/21 3.05 LaTeX tabbing macros for Arabic altxext.sty 2003/05/04 3.11 LaTeX extensions for Arabic mode asize12.clo 1995/11/29 v1.00 12pt parameters for arabart arabext.sty 2003/08/21 3.11 patches for use with arabart.cls graphicx.sty 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty 2022/05/29 v1.15 key=value parser (DPC) graphics.sty 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR) trig.sty 2021/08/11 v1.11 sin cos tan (DPC) graphics.cfg 2016/06/04 v1.11 sample graphics configuration pdftex.def 2022/09/22 v1.2b Graphics/color driver for pdftex epstopdf.sty 2020-01-24 v2.11 Conversion with epstopdf on the fly (HO) infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO) grfext.sty 2019/12/03 v1.3 Manage graphics extensions (HO) kvdefinekeys.sty 2019-12-19 v1.6 Define keys (HO) kvoptions.sty 2022-06-15 v3.15 Key value format for package options (HO) ltxcmds.sty 2023-12-04 v1.26 LaTeX kernel commands for general use (HO) kvsetkeys.sty 2022-10-05 v1.19 Key value parser (HO) pdftexcmds.sty 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO) iftex.sty 2022/02/03 v1.0f TeX engine tests epstopdf-base.sty 2020-01-24 v2.11 Base part for package epstopdf epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live float.sty 2001/11/08 v1.3d Float enhancements (AL) subfig.sty 2005/06/28 ver: 1.3 subfig package caption3.sty 2023/07/31 v2.4d caption3 kernel (AR) tcolorbox.sty 2024/01/10 version 6.2.0 text color boxes pgf.sty 2023-01-15 v3.1.10 (3.1.10) pgfrcs.sty 2023-01-15 v3.1.10 (3.1.10) pgfrcs.code.tex pgfcore.sty 2023-01-15 v3.1.10 (3.1.10) pgfsys.sty 2023-01-15 v3.1.10 (3.1.10) pgfsys.code.tex pgfsyssoftpath.code.tex 2023-01-15 v3.1.10 (3.1.10) pgfsysprotocol.code.tex 2023-01-15 v3.1.10 (3.1.10) xcolor.sty 2023/11/15 v3.01 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration mathcolor.ltx pgfcore.code.tex pgfcomp-version-0-65.sty 2023-01-15 v3.1.10 (3.1.10) pgfcomp-version-1-18.sty 2023-01-15 v3.1.10 (3.1.10) verbatim.sty 2023-11-06 v1.5v LaTeX2e package for verbatim enhancements environ.sty 2014/05/04 v0.3 A new way to define environments trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list etoolbox.sty 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) tikz.sty 2023-01-15 v3.1.10 (3.1.10) pgffor.sty 2023-01-15 v3.1.10 (3.1.10) pgfkeys.sty pgfkeys.code.tex pgfmath.sty pgfmath.code.tex pgffor.code.tex tikz.code.tex tikzfill.image.sty 2023/08/08 v1.0.1 Image filling library for TikZ tikzfill-common.sty 2023/08/08 v1.0.1 Auxiliary code for tikzfill pdfcol.sty 2022-09-21 v1.7 Handle new color stacks for pdfTeX (HO) amsmath.sty 2023/05/13 v2.17o AMS math features amstext.sty 2021/08/26 v2.01 AMS text amsgen.sty 1999/11/30 v2.0 generic functions amsbsy.sty 1999/11/29 v1.2d Bold Symbols amsopn.sty 2022/04/08 v2.04 operator names listings.sty 2024/02/21 1.10 (Carsten Heinz) lstpatch.sty 2024/02/21 1.10 (Carsten Heinz) lstmisc.sty 2024/02/21 1.10 (Carsten Heinz) listings.cfg 2024/02/21 1.10 listings configuration listingsutf8.sty 2019-12-10 v1.5 Allow UTF-8 in listings input (HO) stringenc.sty 2019/11/29 v1.12 Convert strings between diff. encodings (HO) pdfescape.sty 2019/12/09 v1.15 Implements pdfTeX's escape features (HO) adjustbox.sty 2022/10/17 v1.3a Adjusting TeX boxes (trim, clip, ...) xkeyval.sty 2022/06/16 v2.9 package option processing (HA) xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) adjcalc.sty 2012/05/16 v1.1 Provides advanced setlength with multiple back- ends (calc, etex, pgfmath) trimclip.sty 2020/08/19 v1.2 Trim and clip general TeX material collectbox.sty 2022/10/17 v0.4c Collect macro arguments as boxes tc-pdftex.def 2019/01/04 v2.2 Clipping driver for pdftex ifoddpage.sty 2022/10/18 v1.2 Conditionals for odd/even page detection varwidth.sty 2009/03/30 ver 0.92; Variable-width minipages fancyhdr.sty 2022/11/09 v4.1 Extensive control of page headers and footers geometry.sty 2020/01/02 v5.9 Page Geometry ifvtex.sty 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. csvsimple.sty 2024/01/19 v2.6.0 LaTeX CSV file processing csvsimple-legacy.sty 2024/01/19 version 2.6.0 LaTeX2e CSV file processing ifthen.sty 2022/04/13 v1.1d Standard LaTeX ifthen package (DPC) shellesc.sty 2023/07/08 v1.0d unified shell escape interface for LaTeX booktabs.sty 2020/01/12 v1.61803398 Publication quality tables colortbl.sty 2024/02/20 v1.0g Color table columns (DPC) array.sty 2023/10/16 v2.5g Tabular extension package (FMi) dcolumn.sty 2023/07/08 v1.06 decimal alignment package (DPC) advdate.sty 1996/10/20 Advance Date Package datetime.sty 2015/03/20 v2.60 Date Time Package fmtcount.sty 2020/01/30 v3.07 fcprefix.sty 2012/09/28 fcnumparser.sty 2017/06/15 datetime-defaults.sty 2013/09/10 l3backend-pdftex.def 2024-02-20 L3 backend support: PDF output (pdfTeX) supp-pdf.mkii inputenc.sty 2021/02/14 v1.3d Input encoding file fc-english.def 2016/01/12 apatch.sty 2006/07/02 3.11s last minute patches Uxnsh.fd *********** ) (\end occurred inside a group at level 1) ### semi simple group (level 1) entered at line 25 (\begingroup) ### bottom level (see the transcript file for additional information)</usr/local/texlive/2024/te xmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/local/texlive/2024/tex mf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/local/texlive/2024/texmf -dist/fonts/type1/public/arabtex/xnsh14.pfb> Output written on test.pdf (1 page, 26637 bytes). Transcript written on test.log. Thanks
- reledmac: repeat line number if critical note on new pageby Jeff Dodson on November 14, 2025 at 9:21 am
I'm typesetting the Greek New Testament, and I'd like to create an NA28 style apparatus. Specifically, the features I'm referring to are: Critical notes are in an apparatus that is in paragraph form. Notes are numbered using the verse number (in bold). When a verse number appears in the apparatus, I'd like a dot to appear in front of the number. If a verse contains more than one note, only the first note is marked with the verse number. If a verse contains mutiple notes, each note is separated by a symbol (in this case, I want to use the vertical bar symbol "|"). If a verse spans two pages, and one note occurs on the first page and another note occurs on the second page, I'd like both notes to be numbered with the verse number (whereas if they had fallen on the same page, the second note would not have been marked with the verse number). I think that covers the features I'm looking for. I'm very close to achieving this by using line numbers and line number locking (to force the entirety of a verse to have one line number [i.e., the verse number] even if it happens to be printed across multiple lines). However, the last bullet point above is the sticking point. If a verse spans two pages and contains a note on each page, my second-page note isn't numbered. Here's an image to show what I'm talking about: So the note I underlined should have been numbered "12" (instead of being preceded by my note separator) like its sibling note on the previous page. I've tried several different ways of accomplishing this, but haven't been able to achieve all of the features I would like to have. I've used pstart numbering and annotations in addition to the line numbering method I'm using now, but something is always lacking. For example, with pstart numbering, I believe I was able to get the note on the second page to be numbered, but I could never get the independent verses (each marked with a \pstart, \pend pair) to appear in the main text as a continuous paragraph (I don't want verses in the main text to be each in a separate paragraph...I want to control when a paragraph starts). Here's the code that I'm currently experimenting with, and that produced the output shown above: % !TEX program = XeLaTeX \documentclass{book} \usepackage{geometry} \usepackage{enumitem} \usepackage{reledmac} \geometry{letterpaper, margin=1in} \setlength{\parindent}{0pt} \lineation{section} \firstlinenum{1000000} \Xarrangement[A]{paragraph} \Xnotenumfont{\bfseries} \Xnumberonlyfirstinline[A] \newcommand{\mynum}[1]{•#1} \Xwrapnumbers{\mynum} \Xsymlinenum[A]{|} \Xnolemmaseparator[A] \Xinplaceoflemmaseparator[A]{1pt} \newcommand{\versenum}[1]{\noindent\textbf{#1}~} \begin{document} \beginnumbering \pstart \setline{1}% \startlock% \versenum{1}Hello there. This is a paragraph of \edtext{†}{\Afootnote{stuff WH ¦ junk NA WH}}text. I want it to \edtext{†}{\Afootnote{NA\textsuperscript{27}}}be long enough that it wraps around at the end of the line if possible. \endlock \setline{2} \startlock \versenum{2}That way it looks like a \edtext{†}{\Afootnote{really fine paragraph! PCK RP\textsuperscript{mg} CT}}real paragraph.† Now \edtext{†}{\Afootnote{another is here, paragraph! PCK PT TH}}here is another paragraph.† \edtext{†}{\Afootnote{It is NA CT}}It's also going to be long enough to wrap around at the end of the line, so that we can see another paragraph of reasonble length and how it looks. \endlock \setline{3} \startlock \versenum{3}Now finally, \edtext{†}{\Afootnote{and at last NA CT WH}} here is one additional verse. I like to call it affectionately "Verse 3." Others may find that to be quaint or even antequated. However, I like to think of it as being merely traditional. At least that's what I've been telling myself. \endlock \setline{4} \startlock \versenum{4}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut laoreet nulla eget imperdiet accumsan. Proin dignissim mattis libero vitae gravida. Pellentesque quis laoreet felis. Fusce volutpat dolor id velit volutpat tempor. Proin nec lectus nec elit viverra scelerisque rhoncus ut dolor. Donec ut metus tellus. Mauris laoreet efficitur purus ut cursus. Etiam eu nunc fermentum, volutpat ligula at, vehicula nunc. Mauris ipsum nulla, iaculis ut mattis et, sagittis id quam. \endlock \setline{5} \startlock \versenum{5}Cras tristique lacus neque, id bibendum felis pharetra eget. Vestibulum et velit vitae risus pulvinar ornare. Nulla ligula diam, maximus id nisi eget, euismod egestas ipsum. Quisque vel auctor mauris, semper varius felis. Cras viverra congue eleifend. In vulputate justo tortor, eget finibus ipsum vehicula sed. Sed feugiat massa quis gravida finibus. Donec sit amet neque posuere, consectetur odio ut, cursus sapien. Cras malesuada, felis ac blandit efficitur, lectus lectus ultricies tortor, ac ullamcorper ex risus quis velit. Sed viverra vitae mauris venenatis efficitur. Vivamus augue dui, iaculis sit amet ornare eget, faucibus ac sem. Maecenas sit amet tellus a metus suscipit blandit. Nam scelerisque tortor eros, eget dapibus ex pulvinar eu. Morbi placerat mattis dolor, ut molestie nibh dictum non. Proin id rutrum diam. \endlock \setline{6} \startlock \versenum{6}Etiam cursus ante nec nulla suscipit cursus. Proin ac consectetur risus. Ut tempor eros quam, tristique molestie risus finibus vel. Curabitur nunc libero, semper et ligula eget, commodo fermentum erat. Vivamus at urna ut diam viverra porttitor. Cras mollis rutrum elit at tristique. Sed scelerisque enim tortor. Ut ac euismod urna, lacinia sollicitudin mi. Praesent vitae finibus erat, et accumsan mi. Nam lectus nulla, varius vel turpis nec, ornare feugiat leo. \endlock \setline{7} \startlock \versenum{7}Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla sit amet pretium enim. Vestibulum nec semper ipsum. Quisque in vehicula magna, quis tincidunt ex. Aenean nec ligula hendrerit, sagittis dui a, consequat quam. Nulla facilisi. Nulla condimentum mi sit amet risus mollis dignissim. In venenatis bibendum eleifend. Pellentesque eu arcu malesuada, malesuada lectus et, hendrerit risus. \endlock \setline{8} \startlock \versenum{8}Nulla tempus iaculis est, non rutrum tortor imperdiet eget. Proin aliquam, dui et hendrerit suscipit, sem magna feugiat quam, nec gravida ligula ipsum a arcu. Donec tempor ligula nec ante elementum, ac convallis sem placerat. Phasellus nec cursus quam. Integer et ligula non metus vehicula pharetra. Aenean euismod, dui in rhoncus fringilla, eros tortor dignissim odio, at volutpat sem odio ac arcu. In gravida enim ipsum, in cursus arcu venenatis congue. Nunc tincidunt rutrum imperdiet. Pellentesque felis sem, consectetur eget euismod et, cursus in nulla. Morbi eu feugiat augue, vehicula suscipit diam. Donec gravida sem hendrerit, egestas metus eu, dictum dolor. \endlock \setline{9} \startlock \versenum{9}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut laoreet nulla eget imperdiet accumsan. Proin dignissim mattis libero vitae gravida. Pellentesque quis laoreet felis. Ut in metus lectus. Fusce volutpat dolor id velit volutpat tempor. Proin nec lectus nec elit viverra scelerisque rhoncus ut dolor. Donec ut metus tellus. Mauris laoreet efficitur purus ut cursus. Etiam eu nunc fermentum, volutpat ligula at, vehicula nunc. Mauris ipsum nulla, iaculis ut mattis et, sagittis id quam. \endlock \setline{10} \startlock \versenum{10}Cras tristique lacus neque, id bibendum felis pharetra eget. Vestibulum et velit vitae risus pulvinar ornare. Nulla ligula diam, maximus id nisi eget, euismod egestas ipsum. Quisque vel auctor mauris, semper varius felis. Cras viverra congue eleifend. Morbi feugiat ipsum sed urna vestibulum euismod. In vulputate justo tortor, eget finibus ipsum vehicula sed. Sed feugiat massa quis gravida finibus. Donec sit amet neque posuere, consectetur odio ut, cursus sapien. Cras malesuada, felis ac blandit efficitur, lectus lectus ultricies tortor, ac ullamcorper ex risus quis velit. Sed viverra vitae mauris venenatis efficitur. Vivamus augue dui, iaculis sit amet ornare eget, faucibus ac sem. Maecenas sit amet tellus a metus suscipit blandit. Nam scelerisque tortor eros, eget dapibus ex pulvinar eu. Morbi placerat mattis dolor, ut molestie nibh dictum non. Proin id rutrum diam. \endlock \setline{11} \startlock \versenum{11}Etiam cursus ante nec nulla suscipit cursus. Proin ac consectetur risus. Ut tempor eros quam, tristique molestie risus finibus vel. Curabitur nunc libero, semper et ligula eget, commodo fermentum erat. Vivamus at urna ut diam viverra porttitor. Cras mollis rutrum elit at tristique. Sed scelerisque enim tortor. Ut ac euismod urna, lacinia sollicitudin mi. Praesent vitae finibus erat, et accumsan mi. Nam lectus nulla, varius vel turpis nec, ornare feugiat leo. \endlock \setline{12} \startlock \versenum{12}Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla sit amet pretium enim. Vestibulum nec semper ipsum. \edtext{†}{\Afootnote{Get my vehicle over here! WH TH}}Quisque in vehicula magna,† quis tincidunt ex. Aenean nec ligula hendrerit, sagittis dui a, consequat quam \edtext{†}{\Afootnote{Not a giraffe! NA CT WH}}Nulla facilisi.† Nulla condimentum mi sit amet risus mollis dignissim. In venenatis bibendum eleifend. Pellentesque eu arcu malesuada, malesuada lectus et, hendrerit risus. \endlock \setline{13} \startlock \versenum{13}Nulla tempus iaculis est, non rutrum tortor imperdiet eget. Proin aliquam, dui et hendrerit suscipit, sem magna feugiat quam, nec gravida ligula ipsum a arcu. Donec tempor ligula nec ante elementum, ac convallis sem placerat. Phasellus nec cursus quam. Integer et ligula non metus vehicula pharetra. Aenean euismod, dui in rhoncus fringilla, eros tortor dignissim odio, at volutpat sem odio ac arcu. In gravida enim ipsum, in cursus arcu venenatis congue. Nunc tincidunt rutrum imperdiet. Pellentesque felis sem, consectetur eget euismod et, cursus in nulla. Morbi eu feugiat augue, vehicula suscipit diam. Donec gravida sem hendrerit, egestas metus eu, dictum dolor. \endlock \pend \endnumbering \end{document} I'm posting this here because in addition to working for days to try to accomplish this, I've also searched this forum and all over the internet for solutions, and haven't found one. Any help that can be provided would be greatly appreciated! So my questions are: Does anyone know of a way to modify the above code to accomplish that last bullet point? and Is there a better way (other than the line numbering method I'm using in this example) to accomplish those bullet points?
- auto fetching missing characters from other fontsby GowriSaro on November 14, 2025 at 6:32 am
Is it possible to fetch the missing characters from a font to other fonts in which that characters are there without manual work, MWE is \documentclass{article} \usepackage{amsfonts,amsmath,amssymb} \usepackage{fontspec} \setmainfont[Ligatures=TeX,% ItalicFont = GentiumPlus-I.ttf,%AutoFakeBold=2.5% BoldFont = GentiumPlus-Bold.ttf,% BoldItalicFont = GentiumPlus-BoldItalic.ttf, ]{GentiumPlus-R.ttf}%% \setsansfont[Ligatures=TeX, ItalicFont = GillSansStd-Italic.otf, BoldFont = GillSansStd-Bold.otf, BoldItalicFont = GillSansStd-BoldItalic.otf]{GillSansStd.otf}% \begin{document} \def\mytest#1#2{\hbox to 50pt{#1\hfill\symbol{"#1}}\par\addvspace{6pt}} \parindent0pt {\protect\mytest{0104}{}}%%the letter Ą {\protect\mytest{092E}{}}%%the Devanagari letter 'म {\sffamily {\protect\mytest{0104}{}} {\protect\mytest{092E}{}} } \end{document} I'm using LuaLaTeX I missed to mention an important thing, for the primary font, missing characters should fetch from Times New Roman family and for the sans font should be from the OpenSans family.
- Multiple Key-Vals fails in enviroment table wrapperby Treeman on November 14, 2025 at 3:15 am
I'm trying to use xkeyval to make single row commands which add entries to a table. To do this, I'm creating the table (inc header row) with the opening of an environment, and closing the table with the end of the environment, with commands inserted in the middle creating the rows. However if I try to use more than one key-argument I get an 'undefined control sequence' error. Using one seems to work fine. I'm sure it's something to do with how arguments expand in a table but I have no idea how to figure that out. Is what I'm trying to do possible or do I need to find another option? Below is a MRE. \documentclass{article} \usepackage{xkeyval} \makeatletter \define@cmdkey{test}{pArgA}{\def\pArgA{#1}} \define@cmdkey{test}{pArgB}{\def\pArgB{#1}} \makeatother \newenvironment{testEnv} {\begin{tabular}{cc} 1 & 2 \\ } {\end{tabular}} \newcommand{\testcmd}[1][] { \setkeys{test}{#1} %\pArgA & \pArgB \\ %ERROR HERE \pArgA & 0 \\ } \begin{document} \begin{testEnv} %\testcmd[pArgA=X, pArgB=Y] %ERROR HERE \testcmd[pArgA=X] \end{testEnv} \end{document}
- How can I draw a filled plane using tikz/closedcycleby katang on November 13, 2025 at 11:26 pm
I want to make a 3-D figure with a spatial diagram line and draw its projections onto the three axes planes. For better visibility, I want to mark the projections' positions with shaded planes. The MWE and the result are shown below. It looks like that \closedcycle wants to close anyhow in the plane containing the z-axis. Is there any option to draw a plane perpendicular to the z-axis (i.e., to the other two planes)? (I also tried \addplot3 [surf, fill] and fill between, but to no avail.) \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis} %XZ plane \addplot3 [fill=red!20,opacity=30,draw=none,fill opacity=0.5,] coordinates {(0,120,3900)(3,120,3900)} \closedcycle; %YZ plane \addplot3 [fill=green!20,opacity=30,draw=none,fill opacity=0.5,] coordinates {(3,-40,3900)(3,120,3900)} \closedcycle; %XY plane \addplot3 [fill=blue!20,opacity=30,draw=none,fill opacity=0.5,] coordinates {(0,-40,3900)(3,120,3900)} \closedcycle; \end{axis} \end{tikzpicture} \end{document} As a reply to @Jasper, I attach the figure here I need one more plane, for the blue diagram line. The thick spatial curve is projected to the axial planes. Thanks to all for your helpfulness and the useful hints.
- I need a \overbracket to illustrate different permutations (quantum field theory)by M. Lemelin on November 13, 2025 at 9:46 pm
I have four fields illustrate by \phi_1,\phi_2,\phi_3 and \phi_4. And I need to illustrate the permutation between them with a \overbracket. For example, the permutation between 1 and 3 would look like this: But then I have to do 1-2 then 1-4 etc.. I search on the web and I could not find a way to do the overbracket by choosing the two numbers that represent the permutation while always showing the 4 fields. Any idea? Thank you in advance for your help.
- Merge two tables into one with different number of columns without floatingby Nikulok on November 13, 2025 at 9:02 pm
How can I join two independent tables so they look like one table? Every time I try, I can't get rid of the space between the tables. \nointerlineskip doesn't help. I've found several answers on how to do this, but they all rely on \begin{table}...\end{table}. I also read somewhere that you should avoid using floating environments unless they're absolutely necessary. Example: \noindent\begin{tabularx}{\linewidth}{|l|X|l|l|l|l|} \hline One & & Two & \hspace{4cm} & Three & \hspace{2cm} \\ \hline \end{tabularx} \nointerlineskip\noindent\begin{tabularx}{\linewidth}{|l|X|X|X|c|} \cline{1-5} & AAAAA & BBBBBBBBB & CCCCCCCCCC & \parbox[t]{2mm}{\multirow{7}{*}{\rotatebox[origin=c]{90}{\large\texttt{DDDDDDDDDDDD}}}}\\ \cline{1-4} EEEEEEEE & & & & \\ \cline{1-4} FFFFFFFFF & & & & \\ \cline{1-4} GGGGGGGGGG & & & & \\ \cline{1-4} HHHHHHHH & & & & \\ \cline{1-4} IIIIIIIIIII & & & & \\ \cline{1-4} JJJJJJJJJJ & & & & \\ \cline{1-5} \end{tabularx}
- Error linked to active characters?by Bibi on November 13, 2025 at 5:46 pm
This MWE gives an error that disappears if line #3 or line #4 are commented. I would say that this has probably something to do with active characters, but I am not able to understand what goes wrong here. Any help? \documentclass[9pt, professionalfont]{beamer} \usepackage{pgfplots} \usepackage[french]{babel} % No error if this line (or the next one) is commented \usetikzlibrary{babel} \begin{document} \begin{frame} \begin{overlayarea}{\textwidth}{5cm} \only<1>{ \begin{center} \begin{tikzpicture} \begin{axis} \addplot {x^2+4}; \end{axis} \end{tikzpicture} \end{center} } \end{overlayarea} \end{frame} \end{document}
- The circles with scalable radiusby user386618 on November 13, 2025 at 5:37 pm
I'm currently drawing some images representing graphs, and i want that the vertices was circles (like big dots), but when i have 2 images, with different coordinates (different scale maybe), the sizes of circles is different. For example We see that vertices on the first and second image are different, but after multiplication of coordinates of all points by some k, they're the same. Now i'm just doing it manually, multiply the coordinates of every point to some k that the scale of second image is the as the first, but i want to know, is there another way? Just in case attaching the code below: \documentclass{article} \usepackage{asymptote} \usepackage{float} \begin{asydef} void vertice(pair O, pen p=black, pen m=invisible, string s=""){ draw(circle(O,0.5), 2*linewidth(defaultpen)+p); fill(circle(O,0.5), white); label(s, O, fontsize(12/linewidth(defaultpen)));} \end{asydef} \begin{document} \begin{figure}[H] \centering \begin{asy} size(6cm); defaultpen(1.5bp); pair O1=(1,8), O2=(-1,5), O3=(4,5), O4=(-4,3), O5=(0,3), O6=(4,3), O7=(-6,1), O8=(-4,0), O9=(-2,0), O10=(0,0), O11=(3,1), O12=(7,1), O13=(-7,-2), O14=(-5,-2), O15=(-3,-3), O16=(-1,-2), O17=(2,-1), O18=(4,-2), O19=(7,-1); draw(O1--O2); draw(O1--O3); draw(O2--O4); draw(O2--O5); draw(O3--O6); draw(O4--O7); draw(O4--O8); draw(O4--O9); draw(O5--O10); draw(O6--O11); draw(O6--O12); draw(O7--O13); draw(O8--O14); draw(O9--O15); draw(O10--O16); draw(O10--O17); draw(O11--O18); draw(O12--O19); vertice(O1,red,"\(1\)"); vertice(O2,red,"\(2\)"); vertice(O3,red,"\(3\)"); vertice(O4,red,"\(4\)"); vertice(O5,red,"\(5\)"); vertice(O6,red,"\(6\)"); vertice(O7,red,"\(7\)"); vertice(O8,red,"\(8\)"); vertice(O9,red,"\(9\)"); vertice(O10,red,"\(10\)"); vertice(O11,red,"\(11\)"); vertice(O12,red,"\(12\)"); vertice(O13,red,"\(13\)"); vertice(O14,red,"\(14\)"); vertice(O15,red,"\(15\)"); vertice(O16,red,"\(16\)"); vertice(O17,red,"\(17\)"); vertice(O18,red,"\(18\)"); vertice(O19,red,"\(19\)"); \end{asy} \end{figure} \begin{figure}[H] \centering \begin{asy} size(6cm); defaultpen(1.5bp); real k=1; pair O1=k*(-5,6.5), O2=k*(4.25,6), O3=k*(4,0.1), O4=k*(-5.25,-0.3), O5=k*(-0.15,-4.85); draw(O1--O2, yellow*0.8); draw(O2--O3, yellow*0.8); draw(O2--O4, yellow*0.8); draw(O3--O4, yellow*0.8); draw(O3--O5, yellow*0.8); draw(O4--O5, yellow*0.8); vertice(O1); vertice(O2); vertice(O3); vertice(O4); vertice(O5); label("$a$", O1--O2); label("$b$", O3--O2); label("$c$", O4--O3); label("$d$", O4--O2); label("$e$", O4--O5); label("$f$", O5--O3); \end{asy} \end{figure} \begin{figure}[H] \centering \begin{asy} size(6cm); defaultpen(1.5bp); real k=14/11.35; pair O1=k*(-5,6.5), O2=k*(4.25,6), O3=k*(4,0.1), O4=k*(-5.25,-0.3), O5=k*(-0.15,-4.85); draw(O1--O2, yellow*0.8); draw(O2--O3, yellow*0.8); draw(O2--O4, yellow*0.8); draw(O3--O4, yellow*0.8); draw(O3--O5, yellow*0.8); draw(O4--O5, yellow*0.8); vertice(O1); vertice(O2); vertice(O3); vertice(O4); vertice(O5); label("$a$", O1--O2); label("$b$", O3--O2); label("$c$", O4--O3); label("$d$", O4--O2); label("$e$", O4--O5); label("$f$", O5--O3); \end{asy} \end{figure} \end{document}
- customize the heading style for categorized glossariesby Gunodaya Bhikkhu on November 13, 2025 at 5:23 pm
How can I customize the heading style for categorized glossaries printed with the glossaries package? Currently, when using the book document class, glossary sections are formatted as chapter headings by default. In the article class, they appear as section headings. However, I specifically need them to display as subsection headings instead. Could you please advise on how to change the default heading style from chapter to subsection for categorized glossaries? Thank you! Minimal Working Example (MWE): \documentclass{book} %\documentclass{article} \usepackage{glossaries} \newglossary[slg]{symbols}{syi}{syg}{Symbols} \makenoidxglossaries \newglossaryentry{alpha}{type=symbols, name={\ensuremath{\alpha}}, description={Alpha symbol}} \begin{document} \gls{alpha} \newpage % Currently prints as chapter, need subsection \printnoidxglossary[type=symbols, title={Symbol Glossary}] \end{document}
- How to avoid \big having more space than \left?by allo on November 13, 2025 at 4:03 pm
When using \big instead of \left \right I get some unwanted extra space. Example: \documentclass{article} \usepackage{amsmath} \usepackage{stix} \begin{document} \begin{align*} \big\langle \star \hat A \big\rangle \\ % Bad \left\langle \star \hat A \right\rangle % Good \end{align*} \end{document} I want to use \big, because in my more complicated equation \left \right would cause larger angles to be used that look worse than using \big for my equation.
- How to add stripes/layers to a Tikz cubeby Lucas on November 13, 2025 at 1:40 pm
I have the following cube and I would like to add stratified layers/stripes vertically, i.e. travelling in the x_1 direction I come across a red layer, then blue layer, then red, then blue etc. How can I do this? \documentclass[tikz,border=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \pgfmathsetmacro{\cubeSize}{3} \pgfmathsetmacro{\axisLength}{1.2} \draw[black,fill=gray!50] (0,0,0) -- ++(-\cubeSize,0,0) -- ++(0,-\cubeSize,0) -- ++(\cubeSize,0,0) -- cycle; \draw[black,fill=gray!60] (0,0,0) -- ++(0,0,-\cubeSize) -- ++(0,-\cubeSize,0) -- ++(0,0,\cubeSize) -- cycle; \draw[black,fill=gray!40] (0,0,0) -- ++(-\cubeSize,0,0) -- ++(0,0,-\cubeSize) -- ++(\cubeSize,0,0) -- cycle; \draw[->,thick] (-6,0,0) -- ({-6+\axisLength},0,0) node[right] {$x_1$}; \draw[->,thick] (-6,0,0) -- (-6,-\axisLength,0) node[below] {$x_2$}; \draw[->,thick] (-6,0,0) -- (-6,0,-\axisLength) node[above left] {$x_3$}; \end{tikzpicture} \end{center} \end{document}
- \tikzmath defined functions sometimes won't parse in \addplot, producing spurious errorsby Francis Cook on November 13, 2025 at 12:38 pm
This is my first post so the graph may not appear and/or the format may look weird. Apologies if that is so. The graph is produced when the line \addplot[red, thick] {myexp(x,4)}; is commented out When included, numerous errors result, seemingly spurious because it is not being parsed as expected, for example "! Illegal unit of measure (pt inserted)." Unfortunately, I cannot see my mistake. I have tried everything I can think of, including spaces before and/or after pretty much every reference and even trying to use "declare function" (but I couldn't make that work the with complex, iterative logic). I am puzzled by the fact that a simple, two argument function (myfunc) can be called successfully, one with more complex logic (expterm) can be called successfully, but a complex one, with a loop and calls (myexp) fails. Any help/suggestions gratefully received. I am hoping to fix this with \tikzmath rather than use the equivalent pgfplots function definitions etc The code is as follows \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{math} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} % Define the function using tikzmath - scope is within the tikzpicture % note that the \tikzmath block is sensitive to blank lines % so don't leave any lines blank % inclde non math lines like drawing commands within double curly braces {{ }} \tikzmath{ function myfunc(\x,\a) { return sin(\x r) + \a*\x; }; function expterm(\x,\n) { if \n == 0 then { return 1; } else { if \n == 1 then { return \x; } else { return \x ^ \n / factorial(\n); }; }; }; function myexp(\x,\n) { \s=0; for \i in {0,1,...,\n-1}{ \s=\s+expterm(\x,\i); }; return \s; }; } \begin{axis}[ domain=-2*pi:2*pi, xmin=-2*pi, xmax=2*pi, ymin=-3, ymax=3, restrict y to domain=-3:3, samples=100, axis lines=middle, xtick={ -2*pi, -3*pi/2, -pi, -pi/2, pi/2, pi, 3*pi/2, 2*pi }, xticklabels={ $-2\pi$, $-\frac{3\pi}{2}$, $-\pi$, $-\frac{\pi}{2}$, $\frac{\pi}{2}$, $\pi$, $\frac{3\pi}{2}$, $2\pi$ }, width=14cm, height=14cm, xlabel=$x$, ylabel={$y = f(x)$}, title={Function defined in \texttt{\textbackslash tikzmath}} ] % Use the tikzmath function in an addplot \addplot[blue, thick] {myfunc(x,0.3)}; \addplot[green, thick] {expterm(x,3)}; % \addplot[red, thick] {myexp(x,4)}; \end{axis} \end{tikzpicture} \end{document}
- Printing solution only with a specific tag in exsheetsby Arastas on November 13, 2025 at 11:22 am
I am using the exsheets package to write a booklet of exercises. I want to assign a difficulty level to each exercise and print solutions only for simple problems. What would be the optimal way to do it? The default conditional solution printing allows me to select solutions by section/chapter or by explicitly listing problems' IDs. I can define my dividing concept difficulty, but it works for selecting printed questions and not printed solutions. What should I do? The following example prints all solutions, and I want it to print only the simple one while printing all problems. \documentclass{scrreprt} \usepackage{exsheets} \DeclareQuestionClass{difficulty}{difficulties} \SetupExSheets{use-difficulties={simple,regular}} \begin{document} \begin{question}[difficulty=simple] Simple question. \end{question} \begin{solution} Answer to the simple question. \end{solution} \begin{question}[difficulty=regular] A regular question. \end{question} \begin{solution} Answer to the regular question. \end{solution} \SetupExSheets{use-difficulties={simple}} \printsolutions \end{document} UPD: Following the comment, I've checked the documentation for the xsim package, but I do not see the required functionality there.
- Set OriginalDocumentID (and other XMP metadata) from PDF managementby HerpDerpington on November 13, 2025 at 11:04 am
For XMP metadata, there is a field called OriginalDocumentID. How can I set this from lualatex (or pdflatex) using the PDF management machinery? This field is briefly mentioned in the l3pdfmeta documentation: xmpMM properties DocumentID, InstanceID, VersionID, Renditionclass declared by hyperxmp. Properties InstanceID and OriginalDocumentID declared by pdfx (pdfx.xmp) With the exception of OriginalDocumentID all are already allowed and predefined. 1111 \__pdfmeta_xmp_schema_new:nnn 1112 {XMP~Media~Management~Schema} 1113 {xmpMM} 1114 {http://ns.adobe.com/xap/1.0/mm/} 1115 \__pdfmeta_xmp_property_new:nnnnn 1116 {xmpMM} 1117 {OriginalDocumentID} 1118 {URI} 1119 {internal} 1120 {The~common~identifier~for~all~versions~and~renditions~of~a~document.} I have no clue what that is supposed to tell me. Can I use these macros directly? They look more like for internal use only. In this context, how can I generally also set other values of the XMP metadata? A minimal example of my code would look like this: \DocumentMetadata{% pdfstandard = {A-2b}, lang = en-US, pdfversion = 1.7, colorprofiles = { A = sRGB.icc } } \documentclass{article} \usepackage{hyperref} \hypersetup{ pdfauthor={MyName}, pdftitle={Title of the PDF} } \begin{document} Test \end{document} In short: I would like to override the default values of certain XMP fields. How can I achieve that?
- dvipsnames colours changing between tikz and tcolorbox [duplicate]by Craig on November 13, 2025 at 10:53 am
Why is the colour RedViolet (or any colour) appearing differently in the tikzpicture and the tcolorbox, when the color is defined by its dvips name? \documentclass{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{tikz,tcolorbox} \begin{document} \begin{tikzpicture} \shade[rounded corners=22pt, left color=RedViolet, right color=RedViolet] (0,0) rectangle ++(5,1.5); \end{tikzpicture} \begin{tcolorbox}[ title=Hello World, colframe=RedViolet, width=3cm ] \end{tcolorbox} \end{document}
- match tikz \node placement with beamer's natural inputby user1850133 on November 13, 2025 at 10:00 am
I have a beamer document in which I placed text (first input on that slide) without using any special command or environment. Now on the next slide. I was expecting that tikz places \node at (0,0) { ... } exactly where beamer placed that first input on the previous slide. Actually there is a slight gap. So here I'd like to know if there's a way to make tikz place text exactly at the same place as the natural input of beamer. I also want to know if there is a way to get the coordinates of the last node placed by tikz. \documentclass[aspectratio=169,t]{beamer} \mode<presentation> \usetheme{moloch} \usepackage{tabularray,blindtext,tikz} \usetikzlibrary {fadings,patterns} \UseTblrLibrary{tikz,booktabs} \SetTblrInner{rowsep={2pt}} \newcommand{\titles}[1]{{\bfseries #1\vspace{.5em}}} \tikzfading[name=fade top,bottom color=transparent!100, top color=transparent!0] \begin{document} \begin{frame}{première} \end{frame} \begin{frame}{pgf input}% \begin{tikzpicture}% \node at (0,0) [font=\bfseries] {titre}; \end{tikzpicture}% % \titles{\centering titre}% \end{frame} \begin{frame}{basic input}% \titles{\centering titre}% \end{frame} \end{document}
- weird frames around images with white backgroundby Daniel Castro on November 13, 2025 at 8:38 am
I'm working with Overleaf and when I add images that have white background the compiled pdf shows black lines around the white framework. How do I get rid of those without changing the image ? ----- Okay, for instance. I want to put this image: This is how it's seen in the editor: And this is how it appears in the pdf after compilation. As repeatedly asked in the comments, the code in question is just \documentclass[a4paper,11pt]{article} \pdfoutput=1 \usepackage{graphicx} \begin{document} (bunches of text) \begin{figure}[t!] \includegraphics[scale=0.5]{pic.png} \end{figure} \end{document} as you see there's nothing extraordinary in the "code".
- Refering to a variable-indexed argument of newcommandby Zachary Barbanell on November 13, 2025 at 2:46 am
I'm trying to use nested newcommands to create commands for labeled tuples with a set number of arguments. What I want is for \newtuple{\mytuple}{MyTuple}{3} $\mytuple{a}{b}{c}$ to produce the same output as $(\mathsf{MyTuple},a,b,c)$. Here's what I've currently got: \documentclass{article} \begin{document} \newcount\tupleparam \newcommand{\newtuple}[3]{ \newcommand{#1}[#3]{\ensuremath{(\mathsf{#2} \tupleparam=0 \loop \advance \tupleparam 1 , \#\the\tupleparam \ifnum \tupleparam<#3 \repeat )}} } \newtuple{\mytuple}{MyTuple}{3} $\mytuple{a}{b}{c}$ \end{document} This almost works, but the output is slightly off - instead of getting (MyTuple,a,b,c) I get (MyTuple,#1,#2,#3). This is because \#\the\param doesn't do what I was hoping for, but both ##\the\param and #\the\param error out. Is there a way to get the effect I want - referring to the \the\paramth input to the inner command?
- How can I adjust the font size ratio of superscripts and subscripts relative to the main font in mathematical formulasby 菲德烈 on November 13, 2025 at 12:49 am
How can I adjust the font size ratio of superscripts and subscripts relative to the main font in mathematical formulas, as well as their vertical position relative to the main text? When using unicode-math and compiling with XeLaTeX, is it possible to adjust the font size ratio of superscripts and subscripts relative to the main font and also modify their vertical positioning? How can this be done? lualatex is not an option. I must use xelatex. "scriptPercentScaleDown, scriptScriptPercentScaleDown and the shifting vertically via subscriptShiftDown", how to set these parameter when using xelatex?
- How to set the language of the whitespace character with babel and onchar option?by Niranjan on November 12, 2025 at 3:30 pm
This is not really a problem. babel is correctly doing what it is expected to do, but I need to tweak something. Consider the following example: \documentclass{article} \usepackage[provide*=*]{babel} \babelprovide[main,import,onchar={ids fonts}]{marathi} \babelprovide[import,onchar={ids fonts}]{british} \babelfont[marathi]{tt}{Mukta-Regular.ttf} \babelfont[british]{tt}{NewCMMono10-Book.otf} \begin{document} \begin{verbatim} \hypersetup{% linkcolor = {red},% urlcolor = {blue}% } \end{verbatim} It produces this: The white space is not printed correctly, because it is obeying Marathi's font for space. This is fine elsewhere, but in mono-spaced context, it is always better to use the Latin space. Changing the main language from Marathi to British produces this which is exactly what I would like to have: Any hack brilliantly engineered code (cf. David's answer and comments)? 😛
- RMarkdown changes underscore to \emphby Stuart on November 12, 2025 at 2:07 pm
For some strange reason, writing equations in RMarkdown, it (pandoc?) changes underscores to \emph or sometimes it gives me an error message that I was missing a dollar sign (I was not) and so it inserted one for me. The text I entered was: $\psi_0 = \pi_{00} + \pi_{01} BLACK + \pi_{02} LATINX + \pi_{03} ASIAN $ followed by other stuff. I get this message: ! Missing $ inserted. <inserted text> $ l.171 \$\psi \emph{0 = \pi}\{00\} + \pi\emph{\{01\} BLACK + \pi}\{02\} LATINX + ... I have very similar code elsewhere in this document and it works fine. I don't get it. I use RMarkdown rather frequently and have never had a problem like this. Can anyone give me a hint? Thanks for the help. New Developments: I managed to get Level 1 and Level 2 done, but still no Level 3. Here is what I've got now: {=latex} $\pi_{00} = \beta_{000} + \r_{00}$ but I get this message: ! Missing $ inserted. <inserted text> $ l.180 $\pi_{00} = \beta_{000} + \r_ {00}$ I tried the approaches kindly provided by @DavidCarlisle and @Fran, but nothing helps. Can I ask a little question? The line above includes l.180 I figure that's a line number, but in what file? I have nothing like this in line 180 in the RMarkdown source file, and nothing in the generated .tex file. Anyone know?
- How come when filling in TikZ, there is a visible gap between adjacent fills?by Jasper on November 12, 2025 at 1:00 am
How come when filling in TikZ, there is a visible gap between adjacent fills? \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \fill (0,0) -- (1,1) -- (1,0) -- cycle; \fill (0,0) -- (1,1) -- (0,1) -- cycle; \end{tikzpicture} \end{document}
- Highlight certain rectangular blocks in nicematrixby Marc-André Désautels on November 11, 2025 at 3:45 pm
I'm trying to highlight certain rectangular blocks with the nicematrix package. The problem I have is that the left and right sides of the rectangles are not in the correct positions. Here is a MWE: \documentclass{standalone} \usepackage{nicematrix,tikz} \usetikzlibrary{fit} \begin{document} \tikzset{highlight/.style={rectangle, draw=black, line width=2pt, fit=#1}} \begin{NiceTabular}[hvlines,create-medium-nodes]{ccc} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \CodeAfter \begin{tikzpicture}[name suffix = -medium] \node [highlight=(1-1)(1-2)(2-1)(2-2)] {} ; \node [highlight=(3-3)(3-3)(3-3)(3-3)] {} ; \end{tikzpicture} \end{NiceTabular} \end{document} When we compile, we get this: I'm trying to find a way to get the right margins for my rectangles.