Hot
- Define commands inside foreach loopby kaba on January 6, 2026 at 8:29 pm
I'm trying to define commands inside a pgffor \foreach loop, where the command-names depend both on the a macroparameter and the loop parameters. However, I get "First argument of '\NewDocumentCommand' must be a command.". What is wrong, and how can it be fixed? \documentclass[a4paper,12pt]{article} \usepackage{pgffor} \NewDocumentCommand{\CreateMyCommands}{m}{ \foreach \x/\a in {x/a,y/b} { \global\NewDocumentCommand{\csname #1\x\endcsname}{}{#1\a} } } \CreateMyCommands{f} \begin{document} \fx \fy \end{document} A smaller example which seems to demonstrate the problem is: \documentclass[a4paper,12pt]{article} \usepackage{pgffor} \foreach \x in {x} { \global\NewDocumentCommand{\csname f\endcsname}{}{a} } \begin{document} \f \end{document}
- Drawing behind gridlines in Rotated pgfplot - "set layers" seems to have side-effectsby user1476176 on January 6, 2026 at 7:36 pm
I'm trying to create a figure with a filled area behind the gridlines for use on a rotated page. I don't want to use axis on top because I have nodes which need to be drawn on top of the gridlines. I've tried following the instructions at PGFPlots: Understanding how to draw plots on different layers and arrange them, which uses set layers, but I've found that it messes up the spacing when combined with rotate=90,transform shape. MWE: \documentclass{standalone} \usepackage{pgfplots} \begin{document} % Rotate entire page \global\pdfpageattr\expandafter{\the\pdfpageattr/Rotate 90} % Correct label placement but incorrect layering \begin{tikzpicture}[rotate=90,transform shape] \begin{axis}[grid=both,title={Correct Spacing but Incorrect Layering}] \addplot {\x}; \addplot[fill=green,draw=none,on layer=background] coordinates { (-5,-5) (-5,-3) (-3,-3) (-3,-5) (-5,-5) }; \node[fill=white,align=center] at (axis cs:-3,2) {Node above\\gridlines}; \end{axis} \end{tikzpicture} % Fix from Stack Exchange \pgfplotsset{% layers/my layer set/.define layer set={background,main,foreground}{},% set layers=my layer set,% }% % Correct layering but incorrect label placement \begin{tikzpicture}[rotate=90,transform shape] \begin{axis}[grid=both,,title={Correct Layering but Incorrect Spacing}] \addplot {\x}; \addplot[fill=green,draw=none,on layer=background] coordinates { (-5,-5) (-5,-3) (-3,-3) (-3,-5) (-5,-5) }; \node[fill=white,align=center] at (axis cs:-3,2) {Node above\\gridlines}; \end{axis} \end{tikzpicture} \end{document} Output: I also tried setting the layers as follows: \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground} but it seems to also give correct spacing but incorrect layering.
- Tikz: how to fit a series of nodes determined at run-timeby Guidone on January 6, 2026 at 7:15 pm
My goal is to draw a brace under N nodes, like it is shown in the picture (nodes "G" and "H"): Looking at the second answer to this question I came out with this MWE: \begin{filecontents}[overwrite]{argumentmapp.cls} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{argumap}[2026/01/03 v.0.0 Argument Mapping] \LoadClass[11pt]{extarticle} \RequirePackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont{Brill} \RequirePackage{euler-math} \newfontfamily{\supscriptfont}{Euler Math}%[Scale=0.55] \RequirePackage{polyglossia} \setdefaultlanguage{italian} \setotherlanguage[hyphenation=liturgical, usej=true, prosodicshorthands=true]{latin} \RequirePackage{suffix} %=================% % Document layout % %=================% % Page \RequirePackage{geometry} \geometry{a4paper,margin=20mm} \pagestyle{plain} \setlength{\parindent}{0pt} % Line spacing: 1.3 \RequirePackage{setspace} \setstretch{1.2} % Two-column engine \RequirePackage{paracol} %=================% % Utilities % %=================% \RequirePackage{etoolbox} \RequirePackage{etextools} \RequirePackage{lipsum} %------------------ % Control Flow %------------------ \RequirePackage{xifthen} \RequirePackage{xstring}% used to operate on a string %------------------ % Graphics %------------------ \RequirePackage{graphicx} \RequirePackage{tikz} \usetikzlibrary{% calc,arrows.meta,% positioning,% decorations.pathreplacing,% fit,% } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Main 2-column environment %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NewDocumentEnvironment{argan}{ O{0.55} O{0.45} }{% \setcounter{ctrstmt}{0}% \columnratio{#1,#2}% \begin{paracol}{2}% \switchcolumn[0]% }{% \end{paracol}% } \newcommand{\TextCol}{\switchcolumn[0]} \newcommand{\AnalysisCol}{\switchcolumn[1]} \newcommand{\TextColStar}{\switchcolumn*[0]} \newcommand{\AnalysisColStar}{\switchcolumn*[1]} \newcommand{\TextColumn}{\switchcolumn[0]} \WithSuffix\newcommand\TextColumn*{\switchcolumn*[0]} \newcommand\AnalysisColumn{\switchcolumn[1]} \WithSuffix\newcommand\AnalysisColumn*{\switchcolumn*[0]} \newcounter{ctrstmt} \setcounter{ctrstmt}{0} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Right column macros %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%==============================%% %% Statement Graphic %% %%==============================%% % Styles \tikzset{ argStmnt/.style={ circle, draw, inner sep=0pt, minimum size=2.2em, font=\normalsize, }, arganDep/.style={ -{Latex[length=2.2mm,width=1.6mm]}, line width=0.4pt }, } \newrobustcmd{\emptyKey}{} \newrobustcmd{\elemPos}{} \pgfkeys{% /gstmnt/.is family, /gstmnt/.cd, name/.store in=\elemName, name/.default=, depend from/.store in=\dependFrom, % depend from/.initial={}, depend from/.default=, from/.store in=\dirFrom, from/.default=south, to/.store in=\dirTo, to/.default=north, element@pos/.style={}, south of/.code={\pgfqkeys{/gstmnt}{element@pos/.style={below=of #1}}}, north of/.code={\pgfqkeys{/gstmnt}{element@pos/.style={above=of #1}}}, west of/.code={\pgfqkeys{/gstmnt}{element@pos/.style={left=of #1}}}, east of/.code={\pgfqkeys{/gstmnt}{element@pos/.style={right=of #1}}},% name,depend from,from,to } \NewDocumentCommand{\graphStmnt}{O{} m}{% \pgfkeys{/gstmnt/.cd,% name,depend from,from,to,%, #1}% \node[argStmnt, /gstmnt/element@pos] (\elemName) {\supscriptfont#2};% \ifx\dependFrom\empty% \else \draw[arganDep] (\dependFrom.\dirFrom) -- (\elemName.\dirTo); \fi } %%==============================%% %% Coordinated Statement %% %%==============================%% \newif\ifispivot \newcounter{ctrelem} \setcounter{ctrelem}{0} \pgfkeys{% /coostmnt/.is family,% /coostmnt/.cd,% name/.store in=\elemName,% name/.default=,% pivot/.is if=ispivot,% element@pos/.style={}, pivot on/.store in=\pivotOn,% pivot on/.default=,% pivot below/.code={\pgfqkeys{/coostmnt}{element@pos/.style={below=of \pivotOn}}}, pivot below/.initial=, pivot above/.code={\pgfqkeys{/coostmnt}{element@pos/.style={above=of \pivotOn}}}, child of/.store in=\elemParent,% child of/.default=,% after/.code={\pgfqkeys{/coostmnt}{element@pos/.style={right=of \elemParent}}}, before/.code={\pgfqkeys{/coostmnt}{element@pos/.style={left=of \elemParent}}}, from/.store in=\dirFrom, from/.default=, to/.store in=\dirTo, to/.default=, name,pivot on, child of, from, to,% } \tikzset{ coordBrace/.style={ line width=0.4mm,% decorate,% decoration={amplitude=0.1cm,brace, mirror},% % blue } } \newcommand{\elemid}{} \newcommand{\elelist}{} \newcommand{\elements}{} \NewDocumentCommand{\coordielem}{O{} m}{ \refstepcounter{ctrelem} \pgfkeys{/coostmnt/.cd,% name,pivot=false, pivot on, child of,% #1 } \listadd{\elelist}{\elemName} \node[argStmnt, /coostmnt/element@pos] (\elemName) {\supscriptfont$#2\|$\thectrelem}; \ifx\pivotOn\empty \draw[arganDep] (\elemParent.\dirFrom) -- (\elemName.\dirTo); \else \draw[arganDep] (\pivotOn.\dirFrom) -- (\elemName.\dirTo); \fi } \newcounter{cntrbox} \setcounter{cntrbox}{0} \newcommand*{\boxname}{} \NewDocumentEnvironment{coordination}{+b}{% \stepcounter{cntrbox} \renewcommand*{\boxname}{coordbox\thecntrbox} \begin{scope}[local bounding box=\boxname] #1% \end{scope} \draw[color=red, coordBrace] (\boxname.south west) -- (\boxname.south east); } {\setcounter{ctrelem}{1}} % \NewDocumentEnvironment{argugraph}{O{12mm} +b}{ \par\centering% \begin{tikzpicture}[node distance=#1]% #2 }{% \end{tikzpicture}\par} \end{filecontents} \documentclass{argumentmapp} \begin{document} \begin{argan}[0.55][0.35] \AnalysisColumn \begin{argugraph} \graphStmnt[name=A]{A} \graphStmnt[name=B, south of=A, depend from=A, from=south, to=north]{1} \graphStmnt[name=C, north of=A, depend from=A, from=north, to=south]{C} \graphStmnt[name=D, west of=A, depend from=A, from=west, to=east]{D} \graphStmnt[name=E, east of=A, depend from=A, from=east, to=west]{E} \graphStmnt[name=F, south of=D, depend from=D, from=south, to=north]{F} \begin{coordination} \coordielem[name=G, pivot on=E, pivot above, from=north, to=south]{G} \coordielem[name=H, child of=G, after, from=east, to=west]{H} \end{coordination} \graphStmnt[name=L, south of=H, depend from=H, from=south, to=north]{L} \end{argugraph} \end{argan} \end{document} It compiles, but it is not what I am looking for. As a matter of fact, this is what I get: Which makes sense, since the scope also includes the connectors from "E" and "L". So, I decided to go along with the first answer to the same question, and modified the coordination environment to read like this: \newcounter{cntrbox} \setcounter{cntrbox}{0} \newcommand*{\boxname}{} \newcommand{\Loopx}{} \NewDocumentEnvironment{coordination}{+b}{% #1 % Converting the list obtained by each '\coordielem' \listtocsv[\elements]\elelist %suggested by https://tex.stackexchange.com/questions/173579/tikz-fit-variable-number-of-nodes \xdef\Loop{} \foreach \el in \elements {\xdef\Loop{\Loop(\el)} } \node[draw=red,fit=\Loop] {}; } {\setcounter{ctrelem}{1}}% Compiling it, I get the following message: ! Package pgf Error: No shape named `' is known. See the pgf package documentation for explanation. Type H <return> for immediate help. ... l.238 \end {argugraph} With this output: I think something is wrong with my use of the lists. My idea would be to build a list containing the names of \coordielem with etoolbox, convert it to a csvlist with etextools, then iterate over it with TikZ's \foreach method. But, clearly, I am missing something. Any idea?
- Setting the "trapped" flag in XMPby schade96 on January 6, 2026 at 6:42 pm
I am trying to set the "Trapped" flag for my PDF using pdfmanagement: \DocumentMetadata{ pdfstandard = {X-4}, lang = en-US, pdfversion = 1.7, colorprofiles = { X = FOGRA39L_coated.icc% } } \documentclass[a4paper]{article} \ExplSyntaxOn % Note that these must be equal, as per PDF/X-4. \pdfmeta_xmp_add:n{<pdfx:Trapped>True</pdfx:Trapped>} \pdfmanagement_add:nnn{Info}{Trapped}{/True} \ExplSyntaxOff \begin{document} test \end{document} I can for example see $ exiftool test.pdf | grep "Trapped" Trapped : True or, when opening the PDF in a text editor: <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" xmlns:prism="http://prismstandard.org/namespaces/basic/3.0/" xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#" xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" xmlns:pdfaType="http://www.aiim.org/pdfa/ns/type#" xmlns:pdfaField="http://www.aiim.org/pdfa/ns/field#" xmlns:pdfxid="http://www.npes.org/pdfx/ns/id/"> <pdfaExtension:schemas> [...] </pdfaExtension:schemas> <pdf:Producer>luahbtex-1.22.0</pdf:Producer> <pdf:PDFVersion>1.7</pdf:PDFVersion> <pdfxid:GTS_PDFXVersion>PDF/X-4</pdfxid:GTS_PDFXVersion> [...] <pdfx:Trapped>True</pdfx:Trapped> </rdf:Description> </rdf:RDF> </x:xmpmeta> This looks fine to me. But then why is Preflight in Adobe Acrobat reporting this: Trapped key not present in XMP metadata There is no trapped key present in the XMP metadata. The trapped key indicates whether the PDF has been trapped or not. PDF/X-4 requires that the Trapped entry is present in the document's XMP Metadata in the user defined 'pdfx" name space. user defined 'pdfx" name space.
- Errors using Multicol after package updateby Robert Pearson on January 6, 2026 at 6:33 pm
Preface: while this may not have to do with anything, today I updated packages in MikTex for the first time in perhaps a few years. After failing to build documents I have used for many years (syllabi), I've isolated the issue to the Multicol package. The latex-tools package is installed. This is the MWE that's not working. \documentclass{article} \usepackage{multicol} \begin{document} \begin{multicols}{2} ab cd \end{multicols} \end{document} Below are the first log errors I'm getting. ! Undefined control sequence. \mc@prepare@mark@regions ...ark_clear_structure:n {column} l.7 a b cd The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! You can't use `\prevdepth' in horizontal mode. \nointerlineskip ->\prevdepth -\@m \p@ l.7 a b cd Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'. ! Missing $ inserted. <inserted text> $ l.7 a b cd I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed. LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line 7. LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line 7. ! Missing number, treated as zero. <to be read again> { l.7 a b cd A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! Illegal unit of measure (pt inserted). <to be read again> { l.7 a b cd Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! I'll assume that you meant to say pt, for printer's points. To recover gracefully from this error, it's best to delete the erroneous units; e.g., type `2' to delete two letters. (See Chapter 27 of The TeXbook.) ! Missing $ inserted. <inserted text> $ l.7 a b cd I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed. Missing character: There is no � in font cmex10!
- Starred nocite not functioningby user2568648 on January 6, 2026 at 4:48 pm
I am trying to cite all references in a .bib file (generated via Zotero). I use the \nocite{*} command yet nothing appears. My method of composing is XeLaTex + MakeIndex + BibTex. MWE: \documentclass[a4paper, 11pt]{report} \usepackage[utf8]{inputenc} \usepackage[style=apa]{biblatex} \addbibresource{testbib.bib} \begin{document} my doc with hopefully a full bibliography! \nocite{*} \printbibliography \end{document} The following warnings appear : No file test.bbl. LaTeX Warning: Empty bibliography on input line 16. LaTeX Warning: There were undefined references. Package biblatex Warning: Please (re)run Biber on the file: (biblatex) test (biblatex) and rerun LaTeX afterwards.
- Add a photodiode using pst-circby Darío on January 6, 2026 at 4:28 pm
I was looking a photodiode symbol in pst-circ's documentation, I was creation my own photodiode symbol using \newCircDipole{fotodiodo} \makeatletter \def\pst@draw@fotodiodo{% \newdiode[linecolor=black](-0.5,0)(0.5,0){} \multips(-0.25,0.3)(0.25,0){3}{\psline[arrows=<-,linecolor=](0.25,0.22)} \pnode(-0.5,0){dipole@1} \pnode(0.5,0){dipole@2}} \makeatother in the documentation not appear, and is an usual electronic element. With the circuitikz package's is possible but all code and circuit code, is almost finish, except by the photodiode. Thanks a lot!
- How can I create a simple sankey diagram?by Martin Thoma on January 6, 2026 at 1:20 pm
I've used the following data to generate this sankey diagram of my energy usage in December 2025: PV Dach [216] House PV Garten [9] House Grid [1283] House House [1223] Heat House [20.98] Dishwasher House [15.25] Refrigerator House [8] TV House [1.98] Washing Machine House [0.45] Microwave Heat [1110] Heating (HP) Heat [63] Hot Water (HP) Heat [49.8] AC Heat [22] Heater (Bathroom) :PV Dach #f5f542 :PV Garten #f5f542 :Grid #000 :House #cdcdcd :Heat #ff0000 :AC #cc0000 :Heating (HP) #cc0000 :Hot Water (HP) #cc0000 :Heater (Bathroom) #cc0000 :Refrigerator #0000ff with https://sankeymatic.com/ I've seen https://ctan.mirror.garr.it/mirrors/ctan/graphics/pgf/contrib/sankey/sankey.pdf, and sankey but the graphs there seem to be rather complex. Is there any way that lets me produce something like the image above without writing a lot of TeX?
- How to make a sort bibliography file according to order of appearance of file.bib in LaTeX document? [duplicate]by user121793 on January 6, 2026 at 12:41 pm
Please see attach a short lines in Latex: file.bib @misc{energy_five_2024, title = {The five attributes of an ideal {BESS} site}, url = {https://shellenergy.com.au/energy-insights/the-five-attributes-of-an-ideal-bess-site/}, abstract = {Learn more about what attributes make for an ideal site for a Battery Energy Storage System (or BESS).}, language = {en-AU}, urldate = {2026-01-06}, journal = {Shell Energy}, author = {Energy, Shell and How, Penelope}, month = sep, year = {2024}, } @misc{noauthor_ultimate_nodate, title = {The ultimate site selection checklist for battery energy storage projects}, url = {https://pvcase.com/blog/site-selection-checklist-battery-energy-storage}, abstract = {Master battery energy storage projects with our ultimate site selection checklist. Find and evaluate ideal locations to minimize risk and maximize profitability.}, language = {en}, urldate = {2026-01-06}, journal = {PVcase}, } @misc{noauthor_what_nodate, title = {What {Developers} {Need} to {Know} {About} {Ideal} {BESS} {Site} {Selection}}, url = {https://www.glintsolar.com/resources/what-developers-need-to-know-about-ideal-bess-site-selection-gsnext-lars}, abstract = {META description of this post}, language = {en-us}, urldate = {2026-01-06}, } @article{Greening_Grid, shorttitle = {Grid-Scale Battery Storage}, url = {https://pedagogy-vestnik.ksu.kz/apart/2021-104-4/13.pdf}, doi = {10.31489/2021Ped4/101-107}, number = {4}, urldate = {2026-01-06}, journal = {Bulletin of the Karaganda University. Pedagogy series}, year = {2021}, pages = {101--107}, } @misc{harnessing, title = {Harnessing {GIS} for {Site} {Selection} for {Battery} {Energy} {Storage} {Systems} ({BESS})}, url = {https://www.linkedin.com/pulse/harnessing-gis-optimal-site-selection-battery-energy-storage-5ucec}, language = {en}, urldate = {2026-01-06}, } % my references @conference {CIGRE269, title = {CIGRE Technical Brochure 269, Working Group B4.37, VSC transmission. },} @phdthesis{medina2013design, title={Design and Control of Single-phase Modular Multilevel Converter}, author={Medina, Mario L{\'o}pez}, year={2013}, school={Universidad de Oviedo},} @ARTICLE{NabaeandTakahashi\autoref*{figures/NPC}, author={A. Nabae and I. Takahashi and H. Akagi}, journal={IEEE Transactions on Industry Applications}, title={A New Neutral-Point-Clamped PWM Inverter}, year={1981}, volume={IA-17}, number={5}, pages={518-523}, keywords={AC motors;Circuits;Clamps;Harmonic analysis;Motor drives;Pulse inverters;Pulse width modulation;Pulse width modulation inverters;Switches;Voltage}, doi={10.1109/TIA.1981.4503992}, ISSN={0093-9994}, month={Sept},} @book{sharifabadi2016design, title={Design, Control and Application of Modular Multilevel Converters for HVDC Transmission Systems}, author={Sharifabadi, K. and Harnefors, L. and Nee, H.P. and Teodorescu, R. and Norrga, S.}, isbn={9781118851562}, lccn={2016011610}, series={Wiley - IEEE}, year={2016}, publisher={Wiley},} @article{Huang2005, author = {Huang, Mojia}, doi = {10.1016/j.ijsolstr.2004.06.037}, file = {:C$\backslash$:/Users/lobos/Documents/Mendeley/Huang - 2005.pdf:pdf}, journal = {International Journal of Solids and Structures}, keywords = {crystallites,effective elastic stiffness,orthorhombic aggregate of cubic,the 2-point microtexture coefficients,the n -ocf}, pages = {1425--1441}, title = {{The n-point orientation correlation function and its application}}, url = {http://www.sciencedirect.com/science/article/pii/S0020768304003646}, volume = {42}, year = {2005}} @article{Engler2011, author = {Engler, Olaf and Mertens, Norbert and van Dam, Pim}, doi = {10.1016/j.jmatprotec.2011.02.011}, file = {:C$\backslash$:/Users/lobos/Documents/Mendeley/Engler, Mertens, van Dam - 2011.pdf:pdf}, issn = {09240136}, journal = {Journal of Materials Processing Technology}, month = jul, number = {7}, pages = {1278--1284}, publisher = {Elsevier B.V.}, title = {{Texture-based design of a convoluted cut-edge for earing-free beverage cans}}, url = {http://linkinghub.elsevier.com/retrieve/pii/S0924013611000562}, volume = {211}, year = {2011}} @article{Jochen2010, author = {J\"{o}chen, Katja and B\"{o}hlke, Thomas}, doi = {10.1002/pamm.201010200}, file = {:C$\backslash$:/Users/lobos/Documents/Mendeley/J\"{o}chen, B\"{o}hlke - 2010.pdf:pdf}, issn = {16177061}, journal = {PAMM}, month = dec, number = {1}, pages = {415--416}, title = {{Influence of the number of grains in a polycrystal on the prediction of texture during rolling by using the Taylor approach}}, url = {http://doi.wiley.com/10.1002/pamm.201010200 http://onlinelibrary.wiley.com/doi/10.1002/pamm.201010200/abstract}, volume = {10}, year = {2010}} @article{Hashin1963, author = {Hashin, Zvi and Shtrikman, S.}, file = {:C$\backslash$:/Users/lobos/Documents/Mendeley/Hashin, Shtrikman - 1963.pdf:pdf;:C$\backslash$:/Users/lobos/Documents/Mendeley/Hashin, Shtrikman - 1963(2).pdf:pdf}, journal = {Journal of the Mechanics and Physics of Solids}, number = {42}, pages = {127--140}, title = {{A variational approach to the theory of the elastic behaviour of multiphase materials}}, url = {http://www.sciencedirect.com/science/article/pii/0022509663900607}, volume = {11}, year = {1963}} packages \usepackage{blindtext} % needed for creating dummy text passages \usepackage{amsmath} % needed for command eqref \usepackage{amssymb} % needed for math fonts \usepackage[hyphens]{url} \usepackage[colorlinks=true, allcolors=blue]{hyperref} \usepackage{xcolor} \definecolor{c1}{rgb}{0,0,1} % blue \definecolor{c2}{rgb}{0,0.3,0.9} % light blue \definecolor{c3}{rgb}{0.3,0,0.9} % red blue \hypersetup{ linkcolor={c1}, % internal links citecolor={c2}, % citations urlcolor={c3} % external links/urls } \usepackage[numbers, sort&compress]{natbib} % needed for cite and abbrvnat bibliography style \usepackage[nottoc]{tocbibind} % needed for displaying bibliography and other in the table of contents \usepackage{graphicx} % needed for \includegraphics \usepackage{longtable} % needed for long tables over pages \usepackage{bigstrut} % needed for the command \bigstrut \usepackage{enumerate} % needed for some options in enumerate %\usepackage{todonotes} % needed for todos \usepackage{makeidx} % needed for creating an index \makeindex \documentclass[a4paper]{book} \input{settings/packages} \input{settings/page} \begin{document} \chapter*{BESS Location critaria in power grid} For optimal Battery Energy Storage System (BESS) placement in a grid, some keys criteria \cite{energy_five_2024}, \cite{noauthor_ultimate_nodate}, \cite{noauthor_what_nodate} must be include such as: \begin{itemize} \item grid connection proximity (near substations/weak buses) \item physical site suitability (flat, accessible land, good soil) \item technical performance (improving voltage, reducing losses \item supporting renewables), economic viability (matching load, favorable markets) \item alongside strict zoning/safety compliance and environmental considerations \end{itemize} \bibliographystyle{abbrvnat} \bibliography{literature/library} \end{document}
- Embed custom color profile using pdfmanagementby HerpDerpington on January 6, 2026 at 12:26 pm
I need to embed a custom color profile into my pdf. Looking at "l3pdfmeta.pdf" I thought this may work: \DocumentMetadata{ pdfversion = 1.7, pdfstandard = {A-2B}, lang = en-US, % Cannot natively embed custom profiles as mentioned in % the documentation. %colorprofiles = { A = eciRGB_v2.icc } } \ExplSyntaxOn \pdf_object_unnamed_write:nn{fstream} {{/N~4}{eciRGB_v2.icc}} \pdf_object_unnamed_write:ne {dict} { /DestOutputProfile \pdf_object_ref_last: /Info (sRGB) /OutputConditionIdentifier (sRGB) /S /GTS_PDFA1 /Type /OutputIntent } \pdfmanagement_add:nne {Catalog}{OutputIntents}{\pdf_object_ref_last:} \ExplSyntaxOff \documentclass[a4paper]{article} \begin{document} hello \end{document} This does compile. However, qpdf reports, when applied to the pdf: WARNING: test.pdf object stream 11 (object 10 0, offset 37): unknown token while reading object; treating as string WARNING: test.pdf object stream 11 (object 10 0, offset 14): expected dictionary key but found non-name object; inserting key /QPDFFake1 qpdf: operation succeeded with warnings; resulting file may have some problems What would be a fully working example for this? See also: https://tex.stackexchange.com/a/537890
- Is that possible to balance two columns `longtblr` with `tabularray` package?by Explorer on January 6, 2026 at 12:19 pm
This question is nearly the same as this: \documentclass[twocolumn]{article} \usepackage[showframe,paperheight=15cm]{geometry} \usepackage{lipsum} \usepackage{cuted} \usepackage{tabularray} \NewTblrTheme{naked}{ \DefTblrTemplate{foot}{empty}{} \SetTblrTemplate{foot}{empty} \DefTblrTemplate{head}{empty}{} \SetTblrTemplate{head}{empty} } \NewTblrEnviron{mytblr} \SetTblrOuter[mytblr]{long,theme=naked} \begin{document} \begin{strip} \lipsum[2] \bigskip \hrule \bigskip \end{strip} \begin{mytblr}{hlines,vlines,width=\linewidth,colspec={X[c]X[c]X[c]}} 1alpha & beta & gamma \\ 2alpha & beta & gamma \\ 3alpha & beta & gamma \\ 4alpha & beta & gamma \\ 5alpha & beta & gamma \\ 6alpha & beta & gamma \\ 7alpha & beta & gamma \\ 8alpha & beta & gamma \\ 9alpha & beta & gamma \\ 10alpha & beta & gamma \\ 11alpha & beta & gamma \\ 12alpha & beta & gamma \\ 13alpha & beta & gamma \\ 14alpha & beta & gamma \\ 15alpha & beta & gamma \\ 16alpha & beta & gamma \\ 17alpha & beta & gamma \\ 18alpha & beta & gamma \\ 19alpha & beta & gamma \\ 20alpha & beta & gamma \\ 21alpha & beta & gamma \\ 22alpha & beta & gamma \\ 23alpha & beta & gamma \\ 24alpha & beta & gamma \\ 25alpha & beta & gamma \\ 26alpha & beta & gamma \\ 27alpha & beta & gamma \\ 28alpha & beta & gamma \\ 29alpha & beta & gamma \\ 30alpha & beta & gamma \\ 31alpha & beta & gamma \\ 32alpha & beta & gamma \\ 33alpha & beta & gamma \\ 34alpha & beta & gamma \\ 35alpha & beta & gamma \\ 36alpha & beta & gamma \\ 37alpha & beta & gamma \\ 38alpha & beta & gamma \\ 39alpha & beta & gamma \\ 40alpha & beta & gamma \\ 41alpha & beta & gamma \\ 42alpha & beta & gamma \\ 43alpha & beta & gamma \\ 44alpha & beta & gamma \\ 45alpha & beta & gamma \\ 46alpha & beta & gamma \\ 47alpha & beta & gamma \\ 48alpha & beta & gamma \\ 49alpha & beta & gamma \\ 50alpha & beta & gamma \\ \end{mytblr} \end{document} which gives: Noted that I want to typeset something like a university transcript. Thus, unbalanced layout is not elegant, is that possible to hack with some tricks? Edited: longtblr solution conflicted with multicol: \documentclass{article} \usepackage[showframe,paperheight=15cm]{geometry} \usepackage{lipsum} \usepackage{multicol} \usepackage{tabularray} \NewTblrTheme{naked}{ \DefTblrTemplate{foot}{empty}{} \SetTblrTemplate{foot}{empty} \DefTblrTemplate{head}{empty}{} \SetTblrTemplate{head}{empty} } \NewTblrEnviron{mytblr} \SetTblrOuter[mytblr]{long,theme=naked} \begin{document} \lipsum[2] \bigskip \hrule \bigskip \begin{multicols}{2} \begin{mytblr}{hlines,vlines,width=\linewidth,colspec={X[c]X[c]X[c]},rowhead=1} Header 1 & Header 2 & Header 3 \\ 1alpha & beta & gamma \\ 2alpha & beta & gamma \\ 3alpha & beta & gamma \\ 4alpha & beta & gamma \\ 5alpha & beta & gamma \\ 6alpha & beta & gamma \\ 7alpha & beta & gamma \\ 8alpha & beta & gamma \\ 9alpha & beta & gamma \\ 10alpha & beta & gamma \\ 11alpha & beta & gamma \\ 12alpha & beta & gamma \\ 13alpha & beta & gamma \\ 14alpha & beta & gamma \\ 15alpha & beta & gamma \\ 16alpha & beta & gamma \\ 17alpha & beta & gamma \\ 18alpha & beta & gamma \\ 19alpha & beta & gamma \\ 20alpha & beta & gamma \\ 21alpha & beta & gamma \\ 22alpha & beta & gamma \\ 23alpha & beta & gamma \\ 24alpha & beta & gamma \\ 25alpha & beta & gamma \\ 26alpha & beta & gamma \\ 27alpha & beta & gamma \\ 28alpha & beta & gamma \\ 29alpha & beta & gamma \\ 30alpha & beta & gamma \\ 31alpha & beta & gamma \\ 32alpha & beta & gamma \\ 33alpha & beta & gamma \\ 34alpha & beta & gamma \\ 35alpha & beta & gamma \\ 36alpha & beta & gamma \\ 37alpha & beta & gamma \\ 38alpha & beta & gamma \\ 39alpha & beta & gamma \\ 40alpha & beta & gamma \\ 41alpha & beta & gamma \\ 42alpha & beta & gamma \\ 43alpha & beta & gamma \\ 44alpha & beta & gamma \\ 45alpha & beta & gamma \\ 46alpha & beta & gamma \\ 47alpha & beta & gamma \\ 48alpha & beta & gamma \\ 49alpha & beta & gamma \\ 50alpha & beta & gamma \\ \end{mytblr} \end{multicols} \end{document} It failed resulted:
- Hide all content before a certain point [duplicate]by Sebastiano on January 6, 2026 at 11:48 am
Suppose I have a document containing text and mathematical formulas. From a certain point onward, I would like everything written before that point not to be displayed in the compiled document, without manually deleting the previous content. In other words, I am looking for a command or macro or environment that allows me to say: "from here on, show the content, but ignore everything that comes before". I am looking for possible solutions because I need this behavior for a correspondence with another user who has not updated their TeX distribution for a long time. For this reason, solutions that work with older or widely available LaTeX setups would be especially useful. I have never needed to do something like this before, so I am not sure whether such a command exists or if a specific package is required. Here a MWE with a comment: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[8] %%%%%%%%%%%%%%%%%%% I not want visualize \lipsum[8] %%%%% %%%%%%%%%%%%%%%%%%% but only \lipsum[10] %%%%%%%%%% \lipsum[10] \end{document}
- Interaction between DeclareBibstringSetFormat and foreignblockcquoteby Meven Lennon-Bertrand on January 6, 2026 at 8:38 am
I seem to encounter an interesting interaction with the commands around \DeclareBibstringSetFormat (which I want to use to render ibid and other Latin locutions in italics, as per French norms) and the csquotes package, as showcased with the following code, which fails to compile with the following error: ! Missing \endcsname inserted. <to be read again> \blx@bibstringset@set@latin l.46 } MWE: \documentclass{article} \usepackage{hyperref} \usepackage{csquotes} \usepackage[english,french]{babel} \usepackage[ backend=biber, hyperref=true, backref=true, style=verbose-ibid, % style = apa, maxbibnames=99, % maxcitenames=2, sorting=nty, ]{biblatex} \begin{filecontents}[overwrite]{\jobname.bib} @incollection{white_frederick_1994, title = {Frederick Jackson Turner and Buffalo Bill}, pages = {145}, booktitle = {The Frontier in American culture}, author = {White, Richard(Author)}, date = {1994}, } \end{filecontents} \addbibresource{\jobname.bib} \usepackage{csquotes} \SetCiteCommand{\autocite} \DefineBibliographyExtras{french}{% \DeclareBibstringSet{latin}{andothers,ibidem}% \DeclareBibstringSetFormat{latin}{\mkbibemph{#1}}} \UndefineBibliographyExtras{french}{% \UndeclareBibstringSet{latin}} \begin{document} First citation \autocite{white_frederick_1994} \foreignblockcquote{english}[X]{white_frederick_1994}{It is a vanished world. No journeys, save those memory can make, will bring you to it now. The mountains are there, far and shining, and the sunlight and the infinite earth, and the air that seems forever the true fountain of youth – but where is the buffalo, and the wild antelope, and where the horseman with is pasturing thousands? So like its old self does the sage brush seem when revisited, that you wait for the horseman to appear. } \end{document} It somehow seems that the too long \foreignblockcquote paragraph is causing some sort of overflow? If I either make the cited paragraph shorter make the quote non foreign (ie a standard \blockcquote) remove the code to italicize Ibid then the issue disappears. What is happening? Is this an issue with biblatex,with csquotes, or with me? (Note: I originally opened this as an issue, but I got no answer there so I was hoping I could get some help here instead.)
- Git Images not pulled into Overleaf [closed]by Anson Savage on January 5, 2026 at 10:57 pm
I have a LaTeX project that I'm working on in VS Code. I have tracked it with Git and pulled it into GitHub. When I sync it with Overleaf, only have of the folders containing images come through: The entire folder of images is only 58 MB, so I doubt that's the reason. Any thoughts? Thanks! Anson
- PDF/X-4 and A-2B compliant PDF with lualatex and pdf managementby schade96 on January 5, 2026 at 10:37 pm
I am trying to create a PDF/X-4 PDF/A-2B multistandard compliant PDF using lualatex and the pdf management methods. There are a few challenges I faced. I have tried to create a very simplified minimal version of my actual document: \DocumentMetadata{ pdfstandard = {A-2b,X-4}, lang = en-US, pdfversion = 1.7, colorprofiles = { A = sRGB.icc, X = FOGRA39L_coated.icc } } \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage[urlcolor=blue]{hyperref} \hypersetup{ colorlinks=true,% urlcolor={blue},% linkcolor={red},% citecolor={green},% pdfauthor={me},% pdftitle={pdfxtest},% pdfsubject={subject},% pdfversionid={someversion},% pdfkeywords={a,b,c}% } \ExplSyntaxOn % This did not fix it: %\pdfmeta_xmp_add:n{<xmpMM:Keywords>a,b,c</xmpMM:Keywords>} \pdfmeta_xmp_add:n{ <xmpMM:RenditionClass>default</xmpMM:RenditionClass>} % Not sure if I should use True or False here. \pdfmeta_xmp_add:n{ <pdf:Trapped>True</pdf:Trapped>} \pdfmanagement_add:nnn{Info}{Trapped}{/True} \ExplSyntaxOff % Set these all to A4 \pdfmanagement_add:nnx{Page}{TrimBox}{[0~0~595.276~841.89]} \pdfmanagement_add:nnx{Page}{BleedBox}{[0~0~595.276~841.89]} % See comments %\pdfmanagement_add:nnx{Page}{MediaBox}{[0~0~595.276~841.89]} \begin{document} document \href{mailto:nobody}{mail to nobody} % % Construct the image for example like this: % python3 -c "import matplotlib.pyplot as p; p.scatter([0, 1], [0, 1], s=1, rasterized=True); p.savefig('testimage.pgf')" % sed -i '' 's/interpolate=true/interpolate=false/g' testimage.pgf \par\input{testimage.pgf} \end{document} As you can see the PDF: contains an embedded .png image generated from matplotlib (and many more in my actual document); here I have already disabled interpolation for contains a hyperlink (my actual document contains many more, both internal and external) As is, the above example is already A-2B compliant. But X-4 seems to be a bit more complicated and there are a few issues I cannot seem to fix. Preflight in Adobe Acrobat notes the following issues with the generated PDF: DeviceGray used but OutputIntent not Gray or CMYK (2 matches on 1 page) and OutputIntent profile not 'prtr' - This is probably related to how I set the color profiles. Is it even possible to use them as I do in my example? I remember reading that one will get overwritten for the output intent. Keyword mismatch between Document and XMP Metadata - Here, I really do not know what to do or where exactly this comes from. Linearizing the PDF with qpdf --linearize --object-streams=disable --compress-streams=n pdfx_test.pdf lin.pdf, I find that it contains (if I add it as shown in the code sample) <xmpMM:Keywords> <rdf:Bag> <rdf:li>a</rdf:li> <rdf:li>b</rdf:li> <rdf:li>c</rdf:li> </rdf:Bag< </xmpMM:Keywords> or <xmpMM:Keywords>a,b,c</xmpMM:Keywords> depending on what I add there, but neither of which resolve this. Also, I find << /Author [...] /Keywords <feff0061002c0062002c0063> [...] >> where $ python3 -c 'print(bytes.fromhex("feff0061002c00200062002c00200063").decode("UTF-16"))' a, b, c Document contains actions and Annotation other than TrapNet or PrinterMark inside print area (1 match on 1 page) - These seem to be related to the hyperlink and I am not sure how to resolve this. This leads me to the question whether such a document can even be X-4 compliant. How can I fix these points, if possible? For reference, this is the content of "testimage.pgf": %% Creator: Matplotlib, PGF backend %% %% To include the figure in your LaTeX document, write %% \input{<filename>.pgf} %% %% Make sure the required packages are loaded in your preamble %% \usepackage{pgf} %% %% Also ensure that all the required font packages are loaded; for instance, %% the lmodern package is sometimes necessary when using math font. %% \usepackage{lmodern} %% %% Figures using additional raster images can only be included by \input if %% they are in the same directory as the main LaTeX file. For loading figures %% from other directories you can use the `import` package %% \usepackage{import} %% %% and then include the figures with %% \import{<path to file>}{<filename>.pgf} %% %% Matplotlib used the following preamble %% \def\mathdefault#1{#1} %% \everymath=\expandafter{\the\everymath\displaystyle} %% \IfFileExists{scrextend.sty}{ %% \usepackage[fontsize=10.000000pt]{scrextend} %% }{ %% \renewcommand{\normalsize}{\fontsize{10.000000}{12.000000}\selectfont} %% \normalsize %% } %% %% \ifdefined\pdftexversion\else % non-pdftex case. %% \usepackage{fontspec} %% \setmainfont{DejaVuSerif.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \setsansfont{DejaVuSans.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \setmonofont{DejaVuSansMono.ttf}[Path=\detokenize{/Users/dennis/Desktop/pdfxtest/v/lib/python3.12/site-packages/matplotlib/mpl-data/fonts/ttf/}] %% \fi %% \makeatletter\@ifpackageloaded{underscore}{}{\usepackage[strings]{underscore}}\makeatother %% \begingroup% \makeatletter% \begin{pgfpicture}% \pgfpathrectangle{\pgfpointorigin}{\pgfqpoint{6.400000in}{4.800000in}}% \pgfusepath{use as bounding box, clip}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{1.000000,1.000000,1.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{6.400000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{6.400000in}{4.800000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{4.800000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetmiterjoin% \definecolor{currentfill}{rgb}{1.000000,1.000000,1.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.000000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetstrokeopacity{0.000000}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathclose% \pgfusepath{fill}% \end{pgfscope}% \begin{pgfscope}% \pgfsys@transformshift{1.020000in}{0.680000in}% \pgftext[left,bottom]{\includegraphics[interpolate=false,width=4.530000in,height=3.390000in]{testimage-img0.png}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.025455in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.025455in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{1.927273in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=1.927273in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.2}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{2.829091in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=2.829091in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.4}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{3.730909in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=3.730909in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.6}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{4.632727in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=4.632727in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.8}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{0.000000in}{-0.048611in}}{\pgfqpoint{0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{0.000000in}{-0.048611in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{5.534545in}{0.528000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=5.534545in,y=0.430778in,,top]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}1.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{0.696000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=0.643238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{1.368000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=1.315238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.2}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{2.040000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=1.987238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.4}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{2.712000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=2.659238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.6}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{3.384000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=3.331238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}0.8}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetbuttcap% \pgfsetroundjoin% \definecolor{currentfill}{rgb}{0.000000,0.000000,0.000000}% \pgfsetfillcolor{currentfill}% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfsys@defobject{currentmarker}{\pgfqpoint{-0.048611in}{0.000000in}}{\pgfqpoint{-0.000000in}{0.000000in}}{% \pgfpathmoveto{\pgfqpoint{-0.000000in}{0.000000in}}% \pgfpathlineto{\pgfqpoint{-0.048611in}{0.000000in}}% \pgfusepath{stroke,fill}% }% \begin{pgfscope}% \pgfsys@transformshift{0.800000in}{4.056000in}% \pgfsys@useobject{currentmarker}{}% \end{pgfscope}% \end{pgfscope}% \begin{pgfscope}% \definecolor{textcolor}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{textcolor}% \pgfsetfillcolor{textcolor}% \pgftext[x=0.481898in, y=4.003238in, left, base]{\color{textcolor}{\sffamily\fontsize{10.000000}{12.000000}\selectfont\catcode`\^=\active\def^{\ifmmode\sp\else\^{}\fi}\catcode`\%=\active\def%{\%}1.0}}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{0.528000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{0.528000in}}% \pgfusepath{stroke}% \end{pgfscope}% \begin{pgfscope}% \pgfsetrectcap% \pgfsetmiterjoin% \pgfsetlinewidth{0.803000pt}% \definecolor{currentstroke}{rgb}{0.000000,0.000000,0.000000}% \pgfsetstrokecolor{currentstroke}% \pgfsetdash{}{0pt}% \pgfpathmoveto{\pgfqpoint{0.800000in}{4.224000in}}% \pgfpathlineto{\pgfqpoint{5.760000in}{4.224000in}}% \pgfusepath{stroke}% \end{pgfscope}% \end{pgfpicture}% \makeatother% \endgroup%
- latex-lab-math alt text and \displaystyle?by Richard Wong on January 5, 2026 at 6:26 pm
I am experimenting with the tagging project's mathematics tagging to create tagged pdf, and I'm wondering if there's any way for the generated alt text to automatically omit purely visual commands like \displaystyle? It seems to me that the alt text generator grabs and repeats exactly the latex commands verbatim. For example, below is a minimal working example: \DocumentMetadata{ tagging=on, tagging-setup={math/setup=mathml-SE} } \documentclass[11pt]{article} \usepackage{hyperref} \begin{document} %%%%%%%%%%%%%%%%%%%% %accessibility/tagging \tagpdfsetup{math/alt/use} \hypersetup{ pdftitle={Test}, pdfauthor={Richard Wong},pdfdisplaydoctitle% } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $\displaystyle \int_0^1 xe^{-x^2} \ dx$ \end{document} The alt text that I get (when viewed with Apple's VoiceOver screen reader) is Latex formula starts \begin{math} \displaystyle \int_0^1 xe^{-x^2} \ dx \end{math} Latex formula ends A second, related question is how the alt text generator handles macros. For example, if I define \newcommand{\ds}{\displaystyle}, and then write $\ds \int_0^1 xe^{-x^2} \ dx$, would there be a way for the alt text to recognize and omit \ds?
- The font size of frame title in ltx-talkby Elena on January 5, 2026 at 6:01 pm
I would like the frame title to be in a larger font. I could not find examples of setting the font size in the header template. My minimal working example: \DocumentMetadata{tagging = on} \documentclass[10pt]{ltx-talk} \title{Title} \subtitle{Subtitle} \EditInstance{header}{std}{ left-hspace = 3mm, font = \huge } \EditInstance{footer}{std}{ background-color = gray!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame} \frametitle{Default Size Frame Title} Content 1 \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame} \frametitle{\huge Huge Frame Title} Content 2 \end{frame} \end{document}
- How to pick which bibliography strings to use and how to add mine?by user386618 on January 5, 2026 at 4:01 pm
I noticed that when I switch babel from English to Russian, the connection words (and, in, edited by, etc) between entries in my bibliography switch to Russian. I'm curious about I can add "translations" of connection words of my own language (particularly Kazakh) and how to change which to use in certain situations. I didn't find any information about that. \documentclass[10pt]{book} \usepackage[english, russian]{babel} \usepackage[backend=biber, autolang=hyphen]{biblatex} \begin{filecontents*}{draft.bib} @online{draft-1, author = {Клековкин, Геннадий and Коннова, Лариса and Коннов, Валерий}, title = {Теорема Эйлера о плоском графе}, url = {https://studme.org/256259/matematika_himiya_fizik/teorema_eylera_ploskom_grafe}, urldate = {2025-12-15}, langid = {russian}, keywords = {draft} } @incollection{draft-2, author = {Генкин, С.~А. and Иттенберг, И.~В. and Фомин, Д.~В.}, title = {Графы-2}, chapter = {2.6}, pages = {152--170}, booktitle = {Ленинградские математические кружки}, publisher = {АСА}, location = {Киров}, date = {1994}, isbn = {5-87400-072-0}, langid = {russian}, keywords = {draft} } @incollection{draft-3, author = {Бибиков, Павел Витальевич}, title = {Транснеравенство}, chapter = {1.4}, pages = {16--19}, booktitle = {Неравенства в задачах}, publisher = {МЦНМО}, location = {Москва}, date = {2020}, isbn = {978-5-4439-1518-0}, langid = {russian}, keywords = {draft} } @incollection{draft-4, author = {Bulajich Manfrino, Radmila and Gómez Ortega, José Antonio and Valdez Delgado, Rogelio}, title = {The Rearrangement Inequality}, booktitle = {Inequalities: A Mathematical Olympiad Approach}, chapter = {1.4}, pages = {13--20}, publisher = {Birkhäuser}, location = {Basel}, date = {2009}, isbn = {978-3-0346-0049-1}, doi = {10.1007/978-3-0346-0050-7}, langid = {english}, keywords = {draft} } @online{draft-5, author = {{Mathlinks Members}}, editor = {Suppa, Ercole}, title = {Inequalities From Around the World 1995--2005}, date = {2011-03-27}, version = {1.1}, url = {https://www.esuppa.it/Articoli/Suppa_Inequalities%20from%20the%20word%201995-2005.pdf}, urldate = {2025-12-13}, langid = {english}, keywords = {draft} } @article{draft-6, author = {Пинтер, Л. and Хегедыш, Й.}, title = {Упорядоченные наборы чисел и неравенства}, journaltitle = {Квант}, date = {1985-12}, number = {12}, pages = {14--16}, publisher = {Наука}, location = {Москва}, issn = {0130-2221}, url = {https://kvant.mccme.ru/1985/12/uporyadochennye_nabory_chisel.htm}, urldate = {2025-12-13}, langid = {russian}, keywords = {draft} } \end{filecontents*} \addbibresource{draft.bib} \begin{document} \nocite{*} \printbibliography[heading=subbibintoc,keyword={draft},title={draft}] \end{document}
- How to use cslet with DTLforeach after reading dbtex file using \DTLread?by Krantz on January 5, 2026 at 3:45 pm
The following code works until \DTLwrite. So, I am unable to get the \action to work. I understand there might be other ways of accomplishing this. My reason for using this approach is to speed up fetching data from many large csv files. Any help would be much appreciated. I get the error: ! Missing \endcsname inserted. <to be read again> \protect l.9 {\cslet{datafromdbtex\one\two}{\three}} Here is the reproducible example: \documentclass{article} \usepackage{datatool} \DTLread[name=data,format=csv,keys={one,two,three}]{testdata}% works \DTLwrite[name=data,format=dbtex-3,keys={one,two,three},overwrite=allow]{testdata}% works \DTLread[format=dbtex,name=datafromdbtex,keys={one,two,three}]{testdata}% does not work \newcommand{\action}[3]{\csname#1#2#3\endcsname} \DTLforeach{datafromdbtex}{\one=one,\two=two,\three=three}% does not work {\cslet{datafromdbtex\one\two}{\three}}% \begin{document} \action{datafromdbtex}{second_value_of_one}{second_value_of_two}% does not work %should print second_value_of_three \end{document} % testdata.csv % one,two,three % first_value_of_one,first_value_of_two,first_value_of_three % second_value_of_one,second_value_of_two,second_value_of_three
- How to get ChatGPT to convert Latex to pdf? [closed]by Pulkit Agarwal on January 5, 2026 at 2:52 pm
When I ask ChatGPT to make a math worksheet that gives me the latest code and asked me to copy paste it to overleaf. How can I get ChatGPT to generate the PDF for me so I don't have to copy paste it. In Gemini for for example I can use the canvas tool, but I tried doing that with ChatGPT and it did not work.. Even though it shows Katex in the chat answer, I just want it as a pdf. Edit: Found the answer https://www.strivemath.com/pdf - chat gpt launched apps recently so I used this to create a pdf in chatGPT
- Can I customise the footer in ltx-talk?by Elena on January 5, 2026 at 1:52 pm
Yay, now there are accessible Latex slides! I just started porting my slides to ltx-talk from beamer. The first thing that I cannot easily replicate from my beamer template is the footer, which is as follows: \setbeamercolor{foot1}{fg=black, bg=skyblue!20} \setbeamercolor{foot2}{fg=black, bg=skyblue!60} \setbeamercolor{foot3}{fg=black, bg=skyblue} \setbeamertemplate{footline}{% \leavevmode% \hbox{% \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.75ex,dp=1ex,left]{foot1}% \hspace*{2ex} \insertshorttitle \end{beamercolorbox}% \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.75ex,dp=1ex,center]{foot2}% \insertsubtitle % \end{beamercolorbox}% \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.75ex,dp=1ex,right]{foot3}% \insertframenumber{}/\inserttotalframenumber \hspace*{2ex} \end{beamercolorbox}}% \vskip0pt% } I have two main issues. First, I cannot change the height of the footer. See the original beamer slide and its version in ltx-talk. While I can ignore the other differences, this height does bother me. Second, I really like to show the number of the current slide out of the total number of slides. Is there a way to do something similar like 3/10? By the way, this is my current ltx-talk settings: \EditInstance{footer}{std}{ background-color = skyblue!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } I did try using totalframes comma separated inside element-order, but it gave me this error <argument> \??? ! LaTeX Error: Erroneous variable \@shorttotalframes used! But even if it did work, I still don't like the two numbers to be separated. Here is my minimal working example: \DocumentMetadata{tagging = on} \documentclass[10pt]{ltx-talk} \title{Fundamentals of Web Development} \subtitle{Week 1: Basics of HTML} \usepackage[T1]{fontenc} \renewcommand*\familydefault{\sfdefault} \usepackage[sfdefault,condensed]{roboto} \definecolor{kentblue}{HTML}{003882} \definecolor{skyblue}{HTML}{2ABED9} \EditInstance{footer}{std}{ background-color = skyblue!20, color = black, element-order = {title, subtitle, framenumber}, right-hspace = 3mm, left-hspace = 3mm, } \begin{document} \begin{frame} \begin{center} \Huge \textcolor{kentblue}{\textbf{Lecture 1} ltx-talk} \end{center} \begin{itemize} \item Introduction to HTML and CSS \item Basic syntax of HTML \item Some simple formatting \item Images and links \end{itemize} \end{frame} \end{document}
- circuitikz: width, height and pin-distance of a 'op amp'by cis on January 5, 2026 at 1:27 pm
I want to create a breadboard whose x-slot spacing matches the pin spacing of a muxdemux (this was done here); and whose y-slot spacing matches the pin spacing of an op amp. An image for clarification: I can approximate the y-direction by trial and error, using \pgfmathsetlengthmacro\OApin{% 'op amp' pin width \bl*\ctikzvalof{tripoles/op amp/width}*0.3*0.5} But I would like to do this accurately and precisely. In short: I need height, width, and pin spacing of an op amp from the package-keys. (Unfortunately, these keys are usually well hidden and not very self-explanatory.) \documentclass[margin=5pt, multi=circuitikz]{standalone} \usepackage{circuitikz} \def\ShowBreadBoard{1} % Breadboard 1/2 ====================== % Default of bipoles/length ================= \pgfmathsetlengthmacro\bl{\UseName{pgf@circ@Rlen}}% default 1.4cm %%%%%%%%%% Problems here %%%%%%%%%%% % Breadboard y - measures of 'op amp' ================= \pgfmathsetlengthmacro\OApin{% 'op amp' pin width \bl*\ctikzvalof{tripoles/op amp/width}*0.3*0.5} \pgfmathsetlengthmacro\OAh{% 'op amp' height \bl*\ctikzvalof{tripoles/op amp/height}} \pgfmathsetlengthmacro\OAw{% 'op amp' width \bl*\ctikzvalof{tripoles/op amp/height}*5/6+0*\pgflinewidth/cos(45)} %%%%%%%%%%%%%%%%%%%%%%%%% % Breadboard x - measures of 'MuxDemux' ================= \pgfmathsetlengthmacro{\basemuxlen}{\bl *\ctikzvalof{multipoles/muxdemux/base len} *\ctikzvalof{muxdemuxes/scale}} \pgfmathsetlengthmacro{\MUXw}{\basemuxlen*6}%w=6, muxdemux-width %\pgfmathsetlengthmacro{\MUXh}{\basemuxlen*4}%Lh=4, muxdemux-height \pgfmathsetlengthmacro{\MUXp}{\MUXw/3}% bottom pin distance of muxdemux \begin{document} \begin{circuitikz}[] % Breadboard 2/2 ================ \begin{scope}[font=\footnotesize\ttfamily] \pgfmathsetlengthmacro\u{\MUXp/4}% x-unit-length \pgfmathsetlengthmacro\v{\OAh/4}% y-unit-length \def\X{x} \def\Y{y}% letters for coordinates \foreach \x in {0,...,26}{%% \foreach \y in {0,...,6}{% \ifnum\ShowBreadBoard=1 %%%%%%%%% \pgfmathtruncatemacro\Xt{mod(\x,2)==0 ? 1 : 0}% show x-coordinate test \pgfmathtruncatemacro\Yt{mod(\y,2)==0 ? 1 : 0}% show y-coordinate test \fill[gray] (\u*\x,-\y*\v) circle[radius=0.65pt] coordinate[label=](\X\x\Y\y); \ifnum\y=0 \node[above, red] at (\X\x\Y\y) {\ifnum\Xt=1 \x\fi};\fi \ifnum\x=0 \node[left, red] at (\X\x\Y\y) {\ifnum\Yt=1 \y\fi};\fi \draw[red, shorten <=2pt] (x0y0) -- +(135:0.75) node[midway, above]{x} node[near end, below]{y}; \else% \coordinate[](\X\x\Y\y) at (\u*\x,-\y*\v); \fi%%%%%%%%%%%%%% }}% %% %\node{\OAw, \OAh};% test %\draw (x0y0) circle(1mm); % test \end{scope}% ===================== \node[op amp](opamp) at (x8y3) {}; \draw (x15y3) to[L, color=pink] (x22y3); \end{circuitikz} \end{document}
- microtype + newcomputermodern produce unknown slot number warnings, even without textby PHL on January 5, 2026 at 12:29 pm
microtype used together with fontspec is producing many unknown slot number warnings. This is apparently related to protrusion, see microtype producing dozens of Unknown slot number warnings for Lete Sans Math . These warnings happens even with an empty document (so without any pdf output) and are not stopped by disabling protrusion at the beginning of document as demonstrated by the following MWE. % !TEX TS-program = lualatex \documentclass{article} \usepackage{fontsetup} \usepackage{microtype} \AtBeginDocument{\microtypesetup{protrusion=false}} \begin{document} \end{document} (fontsetup without option load the new computer modern font). Using protrusion=false as an option of the package does however solve the problem. [concrete]{fontsetup} does also solve the problem, so this is really font dependent.
- Is there an equivalent to the decimal package (provides raised decimal point in math mode automatically) which works in lualatex? [closed]by Phillip Helbig on January 5, 2026 at 11:24 am
I've mentioned the following subject in an earlier question, but it’s probably best to raise it in a question of its own. (The earlier question involves pdfLaTeX, in which the decimal package works fine for simple font setups.) Unfortunately, I’m having trouble getting Times Roman-like oldstyle numerals both in math and text modes, monospaced in math mode and proportional in text, with otherwise identical fonts. My goal is to have oldstyle numerals both in math (tables, matrices) and text (preferably proportional oldstyle, but monospaced oldstyle would be OK) with a raised decimal point. At least at first glance, it looks like LuaLaTeX can handle the font-related routines. However, for obvious reasons, the decimal package doesn’t work there. I have hundreds of numbers so something like \num from siunitx is not an option for me. Normal input should be possible.
- Where to post / read news about TeX/ LaTeX and similar?by topskip on January 5, 2026 at 9:52 am
This is not a technical question about LaTeX or TeX. Imagine I have created a cool LaTeX package or a new TeX engine or something similar. Is there a good place to post this? I see special mailing lists (for example tex-live), these don't seem to fit. Where can / should I place announcements like this?
- subfloat + includegraphics: alignement and box sizes?by Achille on January 5, 2026 at 9:44 am
I have the following latex code but I cannot fix it. The first row is made of 6 boxes. The second row is made of 3 boxes, the first should be large as the first 3 boxes of the first row, the other two boxes should have the same height of the first box in the same row. All boxes should be aligned. So here are my questions: How can I adjust the space between boxes in the same row? How can I adjust the size of the first box in the second row and adjust the other sizes accordingly? ...Ideally I'd also like to add arrows between, e.g. the 4th box in the first row and the 3rd box in the the second row. Maybe subfloat is not the best choice... Thanks for helping \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{subfig} % Changed from subcaption to subfig \usepackage{array} \setlength{\voffset}{-0.75in} \setlength{\headsep}{5pt} \begin{document} \begin{figure}[ht] \centering % Image rows \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-a}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-b}} \vspace{0.5cm} \subfloat{\includegraphics[width=0.42\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image}} \vspace{0.5cm} \subfloat{\includegraphics[width=0.42\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image-c}}\hfill \subfloat{\includegraphics[width=0.14\textwidth]{example-image}} \end{figure} \end{document}
- Cyrillic and Latin small caps with STIX Two Textby Sascha on January 5, 2026 at 9:34 am
I’m trying to get small capitals working for both Latin and Cyrillic scripts in LuaLaTeX with fontspec using STIX Two Text font. Consider the following example. \documentclass{article} \usepackage{fontspec} \setmainfont{STIX Two Text}[ SmallCapsFeatures={Letters=SmallCaps,LetterSpace=6.0}, ] \begin{document} Ключевые слова (Keywords) \quad vs \quad \textsc{Ключевые слова (Keywords)} \end{document} In this case, Latin small caps work as expected, but Cyrillic don’t. If I explicitly set the script to Cyrillic in \setmainfont, it’s the other way round. \documentclass{article} \usepackage{fontspec} \setmainfont{STIX Two Text}[ SmallCapsFeatures={Letters=SmallCaps,Script=Cyrillic,LetterSpace=6.0}, ] \begin{document} Ключевые слова (Keywords) \quad vs \quad \textsc{Ключевые слова (Keywords)} \end{document} How can I use small caps with both scripts? Defining two different fonts – one for Latin and one for Cyrillic – will not work for me.
- How to shorten the sliding rheostat's wire length in circuitikz package?by Explorer on January 5, 2026 at 7:45 am
What I want to achieved is as below: I have the following code: \documentclass[border=5pt]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[european] \draw(0,0) to [rmeter,t=A] (0,2) to [R,l_=$R$](3,2) to [pR,l_=$R'$,n=pr] (4.1,2); \draw(0,0) to [normal open switch,l_=$S$] (6,0) |-(pr.wiper); \end{circuitikz} \end{document} it gives the similar result: However, the righthand of sliding rheostat's length is control in manual, but guess the coordinate (4.1,2), which is not elegant. I have consulted the manual, but found no similar components. Is that better method to achieve the desird result?
- Is there an incompatibility between the lettrine and beamer packages?by AndréC on January 4, 2026 at 8:24 pm
The sentence below wraps to a new line too soon: the word "rapporteur" should not be on a new line. This problem occurs whenever the sentence is too long to fit on a single line. \documentclass[aspectratio=1610,12pt,french]{beamer} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[locale=FR]{siunitx} \usepackage{lettrine} \usepackage{tikz} \usetikzlibrary{angles} \begin{document} \begin{frame}{} \lettrine[lraise=.25]{S}{ans} utiliser de rapporteur donner la mesure de chacun des angles sachant que $\widehat{xOz}=\ang{60}$. \bigskip \lettrine[lraise=.25]{S}{ans} utiliser de rapporteur donner la mesure de chacun des angles sachant que l'angle xOz mesure 60 degrés. \end{frame} \end{document} Here's what's displayed:
- old-style numerals everywhere, including math modeby Phillip Helbig on January 3, 2026 at 6:30 pm
pdflatex Problem: need old-style numerals in main text Solution: \RequirePackage[osf]{newtxtext} Works fine in main text, but not in math mode. Problem: need old-style numerals also in math mode Solution: \DeclareMathSymbol{0}{\mathord}{letters}{0}` Works fine. Problem: need raised decimal point Solution: RequirePackage{decimal} Works fine as long as all numerals with a decimal point are in math mode, which is clear must be the case. That is not really relevant for the next problem, but it means that more numerals must be in math mode (unless I want 123$.$456 and so on). Problem: In text smaller or larger than normalsize, numerals are somewhat larger and bolder. Solution: Put all numerals in math mode if text is not normalsize. Remark: I noticed the problem since my tables are footnotesize. There, it's easy to get all numbers in math mode automatically, and it's only a minor problem that the numerals look a bit larger and bolder than they should. Problem: The user should not have to worry about whether the text is normalsize. Numbers in tables can be handled automatically. However, in an actual footnote numerals will differ in appearance whether or not they are in math mode. Ditto for text in any other size larger or smaller than normalsize. Note that the problem is NOT that the numerals are not scaling in math mode with the text. They are, whether the text is larger or smaller than normalsize. But they are always slightly larger and bolder than they should be (but not as large as the next larger size, nor as bold as boldfaceseries). Remark: I would be willing to switch to LuaLaTeX if I have to change little or nothing else. (I'll presumably have to use another font-selection mechanism and another font, but presumably there is a font similar to newtxtext and newtxmath.) In particular, the raised decimal point via the decimal package should still work (or there must be an easy alternative), and of course I still want old-style numerals not just in the main text but also in math mode. %class file \ProvidesClass{test}[2026/01/03] \LoadClass[8pt,twoside]{extarticle} \RequirePackage[T1]{fontenc} \RequirePackage[osf]{newtxtext} \RequirePackage{newtxmath} \RequirePackage{extsizes} \RequirePackage{fontsize} \changefontsize[10.2pt]{8.6pt} \DeclareMathSymbol{0}{\mathord}{letters}{`0} \DeclareMathSymbol{1}{\mathord}{letters}{`1} \DeclareMathSymbol{2}{\mathord}{letters}{`2} \DeclareMathSymbol{3}{\mathord}{letters}{`3} \DeclareMathSymbol{4}{\mathord}{letters}{`4} \DeclareMathSymbol{5}{\mathord}{letters}{`5} \DeclareMathSymbol{6}{\mathord}{letters}{`6} \DeclareMathSymbol{7}{\mathord}{letters}{`7} \DeclareMathSymbol{8}{\mathord}{letters}{`8} \DeclareMathSymbol{9}{\mathord}{letters}{`9} %user file \documentclass{test} \begin{document} \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \noindent \tiny Now is the time. 0123.456\\ Now is the time. $0123.456$ \scriptsize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \footnotesize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \small \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \normalsize \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \large \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \Large \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \LARGE \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \huge \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \Huge \noindent Now is the time. 0123.456\\ Now is the time. $0123.456$ \end{document} \ProvidesFile{decimal.sty}[2011/06/03 v1.1 Package`decimal.sty'] \let\peri@d\. \def\.{\ifmmode\mbox{.}\else\expandafter\peri@d\fi} \DeclareMathSymbol{\cd@t}{\mathord}{symbols}{"01} \mathcode`\.="8000 {\catcode`\.=\active% \gdef.{\cd@t} } \endinput %% %% End of file `decimal.sty'.