• TexLive 2026 package installation problem
    by Horas on March 18, 2026 at 4:06 pm

    I am installing TexLive 2026. And I got this message. Regrettably, I don't find a way to run the solution: tlmgr update --all --reinstall-forcibly-removed Can someone help me please? Thank you in advance. *** PLEASE READ THIS WARNING *********************************** The following (inessential) packages failed to install properly: aboensis adigraph adrconv alertmessage alpha-persian answers apprendre-a-programmer-en-tex arsclassica avremu babel-basque babel-catalan babel-croatian babel-czech babel-interlingua babel-irish babel-kurmanji babel-piedmontese babel-romansh babel-slovak babel-thai barracuda beamercolorthemeowl beamertheme-cleaneasy beamertheme-cuerna beamertheme-focus beamertheme-pure-minimalistic beamertheme-saintpetersburg beamerthemenord beautybook beautynote biber biber-ms bibleref bjfuthesis bmstu bookcover bophook burmese businesscard-qrcode c90 ccicons chappg chapterfolder chktex cjk classicthesis cleanthesis cluttex cmbright confproc context-notes-zh-cn context-simpleslides conv-xkv cora-macs cqubeamer dashbox decimal dlrg-templates doclicense drac dynblocks ebezier elegantbook elegantpaper elmath els-cas-templates elteiktdk elteikthesis emo endnotes-hy epiolmec etdipa europasscv europecv exam-lite exam-n exam-zh fancymag fancytooltips faq-fr-gutenberg fascicules fast-diagram fcltxdoc featpost feupphdteses fithesis foliono fontinst formation-latex-ul ftc-notebook fundus-calligra fundus-sueterlin gentium-sil graphicxbox gridslides ha-prosper hebdomon hfutthesis histogr hithesis hitreport hitszbeamer hitszthesis hpsdiss hu-berlin-bundle hypdvips hyph-utf8 hyphen-hungarian imtekda inline-images iodhbwm is-bst jeuxcartes jourcl jourrr kastrup ketcindy keyfloat knuth-pdf koma-script-examples kotex-utf ktbox ku-template l3experimental l3packages latex-course latex-for-undergraduates lcg lengthconvert letgut lilyglyphs lisp-on-tex listbib mahjong makecookbook manfnt margbib mathcomp mcmthesis mdsymbol minitoc multibbl multicap musixtex mycv navydocs ndsu-thesis-2022 novel nwafuthesis nwejm nxuthesis ogham oldstyle opbible panneauxroute papertex patch pbsheet pdfscreen pdfslide permute pgf-periodictable plantslabels powerdot-tuliplab proflycee pst-barcode pst-shell pst-solides3d pst-spinner pstricks q-and-a quantumcubemodel qyxf-book rcs-multi realhats rebuttal recipebook revtex4-1 runtexfile savefnmark sduthesis sectsty semantic seuthesis seuthesix sitem sjtutex skb spelatex sseq stellenbosch stellenbosch-2 stex svn-multi svn-prov tabularborder tcolorbox tex-virtual-academy-pl texlive-ja texlive-sr texproposal texworks.windows thesis-gwu tiet-question-paper tikz-network tile-graphic tlc-article tlcockpit tlmgr-intro-zh-cn todonotes tudscr uafthesis ualberta uantwerpendocs udesoftec udiss uestcthesis uiucredborder unamth-template unbtex underlin vgrid visualfaq-fr vlna vmargin wallcalendar wintools.windows xcookybooky xebaposter xepersian xtuthesis yathesis yazd-thesis zbmath-review-template You can fix this by running this command: tlmgr update --all --reinstall-forcibly-removed to complete the installation. Blockquote

  • alt text for hyperlink - accessible PDF - screen reader reads link instead of text
    by YamiOmar88 on March 18, 2026 at 2:29 pm

    I have the following sample code, where a \hyperlink is defined: \DocumentMetadata{ lang = fr-FR, pdfversion = 2.0, pdfstandard = ua-2, pdfstandard = a-4f, %or a-4 tagging = on, tagging-setup={math/setup=mathml-SE} } \documentclass[a4paper,11pt]{article} % Page layout \usepackage[margin=2.5cm]{geometry} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \AddToHookWithArguments{env/otherlanguage/begin}{\tagpdfsetup{text/lang=\BCPdata{language}}} \AddToHook{cmd/select@language/after}{\tagpdfsetup{text/lang=\BCPdata{language}}} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{example-image} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ {\normalsize type.structure}\\ {\Large nom.structure}\\ {\normalsize nom.gestionnaire}\\ {\small address.structure}} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} {\normalsize type.structure} {\LARGE \textbf{nom.structure}} {\normalsize nom.gestionnaire} {\small address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. Ceci est un lien vers \hyperlink{fr-poster}{un tableau de bord}. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \hypertarget{de-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \tagstructend \end{document} The code is compiled with LuaLaTeX using MiKTeX 26.2. My LaTeX version is LaTeX2e <2025-11-01>, L3 programming layer <2026-01-19>. When I test it with a screen reader, instead of reading the text "un tableau de bord", it reads "fr-poster". How do I fix this? Am I missing an alt text? Why isn't it reading the actual text?

  • Is there currently a way to use custom lists in slides with ltx-talk class?
    by ChristopherE on March 18, 2026 at 2:13 pm

    The ltx-talk class for slides defines its own basic lists, so that they can be used with overlays. I am interested in using custom lists, for example ones that pre-format dialogue. Doing this in the usual way with enumitem currently fails. A brief example follows. Is there a way to insulate custom lists from the class's baked-in list definitions, so that this will work, by putting them in something like a minipage environment? Failure case \DocumentMetadata{tagging = on, lang = en-us} \documentclass[aspect-ratio=4:3]{ltx-talk} \usepackage{enumitem} \newlist{dialist}{description}{1} \setlist[dialist]{font=\textsc, leftmargin=2cm, style=nextline} \begin{document} \begin{frame} \frametitle{Dialogue} \begin{dialist} \item[Socrates] And your opinion is right, as you can prove in this way: if some one asked you “Is there, Gorgias, a false and a true belief?” you would say, Yes, I imagine. \item[Gorgias] I should. \item[Socrates] But now, is there a false and a true knowledge? \end{dialist} \end{frame} \end{document} error: ! Package enumitem Error: Non standard \item.

  • Multiple line title in Accessible PDF - LuaLaTeX, tagpdf
    by YamiOmar88 on March 18, 2026 at 1:42 pm

    I am trying to create an accessible PDF using LaTeX and compiling with LuaLaTeX. For information, this is the top of a log file (I assume the latex version being used): This is LuaHBTeX, Version 1.24.0 (MiKTeX 26.2) (format=lualatex 2026.3.17) 18 MAR 2026 14:30 restricted system commands enabled. LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> My code looks as follows: \DocumentMetadata{ lang = fr-FR, pdfversion = 2.0, pdfstandard = ua-2, pdfstandard = a-4f, %or a-4 tagging = on, tagging-setup={math/setup=mathml-SE} } \documentclass[a4paper,11pt]{article} % Page layout \usepackage[margin=2.5cm]{geometry} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{example-image} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ \normalsize{type.structure}\\ \Large{nom.structure}\\ \normalsize{nom.gestionnaire}\\ \small{address.structure}} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} \normalsize{type.structure} \LARGE{\textbf{nom.structure}} \normalsize{nom.gestionnaire} \small{address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \hypertarget{de-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{example-image.pdf} \tagstructend \end{document} Question: I don't know how to properly create the title, that needs to have several lines. The way I did it (without using \maketitle) produces an H1 tag that contains a Part tag. This Part tag contains 4 P tags. It is my understanding that the H1 tag should not contain other tags. How should I be declaring the title instead?

  • Multiligual accessible PDF - Language not recognized by screen readers
    by YamiOmar88 on March 18, 2026 at 11:12 am

    I am creating a PDF using LaTeX and compiling with LuaLaTeX. Here is a copy of my code: \DocumentMetadata{ lang = fr-FR, pdfversion = 2.0, pdfstandard = ua-2, pdfstandard = a-4f, %or a-4 tagging = on, tagging-setup={math/setup=mathml-SE} } \documentclass[a4paper,11pt]{article} % Page layout \usepackage[margin=2.5cm]{geometry} % Fonts and encoding \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % Graphics (optional) \usepackage{graphicx} \graphicspath{{/icons}} \usepackage{pdfpages} % Header / footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear header and footer \usepackage{xcolor} \usepackage[colorlinks=true, linkcolor=blue!50!black]{hyperref} \usepackage[ngerman,french]{babel} \usepackage{tagpdf} \tagpdfsetup{activate-all} \tagpdfsetup{math/alt/use} \usepackage{hyperref} \hypersetup{ pdftitle = {Titre}, pdfauthor = {Nom Organisation}, pdfsubject = {Données statistiques – yyyy}, pdfkeywords= {statistiques, 2026}, pdfdisplaydoctitle = true, bookmarks = true, bookmarksopen = true, bookmarksnumbered = true, colorlinks = true, linkcolor = blue, pdflang = {fr-FR} } % --- HEADER: logo top-left --- \setlength{\headheight}{30pt} \fancyhead[L]{% \includegraphics[height=1.5cm,alt={Logo du Organisation}]{logo} } % Remove header and footer rules \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} % No page numbers \pagenumbering{gobble} % General information % \author[]{} \title{ \normalsize{type.structure}\\ \Large{nom.structure}\\ \normalsize{nom.gestionnaire}\\ \small{address.structure}} \title{nom.structure} % \institute{} \date{} \begin{document} \tagstructbegin{tag=H1} \begin{center} \normalsize{type.structure} \LARGE{\textbf{nom.structure}} \normalsize{nom.gestionnaire} \small{address.structure} \end{center} \tagstructend \vspace{1.5cm} \thispagestyle{fancy} % --- Intro (accessible) --- \section*{Français} Le texte en langue française. \selectlanguage{ngerman} \begin{otherlanguage}{ngerman} \section*{Deutsch} Der Text in deutscher Sprache \end{otherlanguage} \clearpage % --- Poster pages (NOT accessible, marked as artifacts) --- \tagstructbegin{tag=Artifact, alt={Tableau de bord non accessible}} \hypertarget{fr-poster}{} \includepdf[pages=1, fitpaper=true, artifact]{//dashboard/file_fr_de.pdf} \hypertarget{de-poster}{} \includepdf[pages=2, fitpaper=true, artifact]{//dashboard/file_fr_de.pdf} \tagstructend \end{document} Question: I verify the accessibility on PAC. The PAC version I have doesn't recognize PDF 2.0, but is enough to see if the language is identified. For all tags, the "lang" attribute is empty. If I look at the file using other software (PDF-XChange Editor), the "lang" attribute says "default". I tried the text to speech from Modzilla and it only gets read in french. How an I properly indicate which portions of the text are to be read in German? Thank you for your time and please do not hesitate to answer partially! I really appreciate your help.

  • How to create a CJK IDS command that becomes a new word?
    by 2023 Siri on March 18, 2026 at 11:10 am

    I would like to have this command, for example: \ids{⿰钅使} so that even if the character is not included in Unicode, it can still be used to form a new character for display.

  • How to cite episodes from a Netflix series in Chicago style?
    by Nex Oudega on March 18, 2026 at 10:32 am

    While working on a paper for university, I came across the problem of wanting to refer to a few episodes from a Netflix series, but not knowing how to format this in the .bib file. I use Zotero to keep track of my references and when I generate a reference from there, everything seems to be fine: However, when I export the references in BibLaTeX format and import them into my .bib file, the bibliography doesn't look right: Charlie Covell is supposed to show as scriptwriter and Georgi Banks-Davies is supposed to be shown as director. That this show is by Netflix also doesn't seem to appear. How would I go about formatting this? This is my code (i.e. how Zotero has formatted it): @misc{banks-davies_episode1_2024, title = {Episode 1}, titleaddon = {Kaos}, publisher = {Netflix}, author = {Banks-Davies, Georgi}, editora = {Covell, Charlie}, editoratype = {collaborator}, date = {2024-08-29}, }

  • plain TeX to LaTeX conversion
    by GowriSaro on March 18, 2026 at 10:22 am

    I'm having bunch of Plain TeX equations, few examples given below: $$ a+b=c $$ $$ - {\pi \over 2} < \theta < {\pi \over 2}.\eqno{(1)} $$ $$ \left\{ \matrix{ \dot{\varphi}_1 = \varphi_2 \cr \dot{\varphi}_2 = M^{-1} ( \varphi_1) \cr } \right. , $$ \bye Is there any possibility to convert those to LaTeX format, please advise.

  • Space between top of text area and chapter heading using \EditInstance formating (ruled headformat)
    by polaren on March 18, 2026 at 9:34 am

    A follow up question to How to modify the chapter headings using \EditInstance. The accepted answer solved the basic layout, but how can I eliminate the vertical space between the top of the text area and the top rule of the chapter heading when using the ruled headformat? The code written by cfr in the linked question produces The current output has unwanted space above the top rule (see image above), while I want the rule to align with the top of the text area (see image below). MWE 1 (based on cfr’s answer; shows the problem) % Source - https://tex.stackexchange.com/a/760937 % Posted by cfr (edited by polaren) % Retrieved 2026-03-17, License - CC BY-SA 4.0 \DocumentMetadata{% lang=en-GB, pdfstandard=ua-2, pdfversion=2.0, tagging=on, } %%\documentclass{book} \documentclass[11pt,a4paper,twoside,final]{report} \usepackage[margin=25mm,top=24mm,bottom=24mm,nomarginpar,nohead,footskip=11mm]{geometry} \usepackage{showframe}\renewcommand\ShowFrameLinethickness{0.05mm} \usepackage{hyperref} % Needed to pass VeraPDF. \hypersetup{ pdftitle={MWE}, pdfauthor={cfr}, pdfsubject={Answer to First question to LaTeX Stack Exchange.}, } \ExplSyntaxOn \makeatletter \dim_new:N \l__heading_indent_dim \skip_new:N \l__heading_rule_ht_skip \skip_new:N \l__heading_rule_dp_skip \skip_new:N \l__heading_rule_wd_skip \skip_new:N \l__heading_before_rule_skip \skip_new:N \l__heading_after_rule_skip \tl_new:N \l__heading_after_code_tl \tl_new:N \l__heading_before_code_tl \tl_new:N \l__heading_number_title_sep_tl \cs_new_protected_nopar:Npn \__heading_rule: { \tag_mc_end_push: \tag_mc_begin:n {artifact} \hrule height \l__heading_rule_ht_skip width \l__heading_rule_wd_skip depth \l__heading_rule_dp_skip \tag_mc_end: \tag_mc_begin_pop:n {} } \DeclareTemplateInterface{headformat}{ruled}{5} { indent : length = 0pt , before-code : tokenlist = , after-code : tokenlist = , number-title-sep : tokenlist = 20pt , % WWW-HHHH-YYYY ?????????????????? rule-depth : skip = 0.2pt , rule-height : skip = 0.2pt , rule-width : skip = \linewidth , before-rule-sep : skip = 5pt , after-rule-sep : skip = 5pt , } \DeclareTemplateCode{headformat}{ruled}{5} { after-code = \l__heading_after_code_tl , before-code = \l__heading_before_code_tl , indent = \l__heading_indent_dim , number-title-sep = \l__heading_number_title_sep_tl , rule-depth = \l__heading_rule_dp_skip , rule-height = \l__heading_rule_ht_skip , rule-width = \l__heading_rule_wd_skip , before-rule-sep = \l__heading_before_rule_skip , after-rule-sep = \l__heading_after_rule_skip , } { \__head_show_arguments:nnnnn {#1}{#2}{#3}{#4}{#5} \tl_if_empty:oF {#1} { \SetTemplateKeys{headformat}{ruled}{#1} } \group_begin: \UseTaggingSocket{sec/title/begin}{{\int_use:N\l__head_level_int}{#3}} \__heading_rule: \skip_vertical:N \l__heading_after_rule_skip \par \normalfont \normalcolor \interlinepenalty \@M \l__head_decls_tl{} \bool_if:NTF \l__head_unnumbered_bool { \dim_compare:nNnTF \l__heading_indent_dim < \c_zero_skip { \skip_horizontal:N \l__heading_indent_dim \MakeLinkTarget[\l__head_name_tl]{} } { \MakeLinkTarget[\l__head_name_tl]{}\skip_horizontal:N \l__heading_indent_dim } } { \dim_compare:nNnTF \l__heading_indent_dim < \c_zero_skip { \skip_horizontal:N \l__heading_indent_dim \MakeLinkTarget{\l__head_name_tl} } { \MakeLinkTarget{\l__head_name_tl}\skip_horizontal:N \l__heading_indent_dim } \l__head_number_decls_tl #2 \skip_horizontal:n { \l__heading_number_title_sep_tl } } \l__head_title_decls_tl \l__heading_before_code_tl {#3} \l__heading_after_code_tl \par \skip_vertical:N \l__heading_before_rule_skip \__heading_rule: \UseTaggingSocket{sec/title/end} \group_end: } \DeclareInstance{headformat}{ruled}{ruled} { indent = 0pt , before-code = , after-code = , } \makeatother \ExplSyntaxOff \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=4mm, %before-sep=0mm, headformat-instance=ruled, decls=\raggedright\parindent 0pt\rmfamily } \EditInstance{headformat}{ruled}{ rule-depth=0.05mm, rule-height=0.05mm, } \usepackage{kantlipsum} \begin{document} \chapter*{Unnumbered Chapter} abc \chapter{Title of Chapter} \kant[1] \end{document} MWE 2 (fragile workaround; desired appearance) \DocumentMetadata{ lang = sv, pdfversion = 2.0, pdfstandard = ua-2, tagging = on, } \documentclass[11pt,a4paper,twoside,final]{report} \usepackage[margin=25mm,top=24mm,bottom=24mm,nomarginpar,nohead,footskip=11mm]{geometry} \usepackage{showframe}\renewcommand\ShowFrameLinethickness{0.05mm} \usepackage[document]{ragged2e} % Needed for compilation. \usepackage{hyperref} % Needed to pass VeraPDF. \hypersetup{ pdftitle={MWE}, pdfauthor={polaren}, pdfsubject={First question to LaTeX Stack Exchange.}, } \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=0mm, before-sep=0mm, start-code=\clearpage\vspace*{-10.75mm}\rule{\textwidth}{0.1mm}\newline\vspace*{-18mm}, final-code=\vspace*{-5mm}\rule{\textwidth}{0.1mm}\newline\vspace*{0mm}, headformat-instance=hang, decls=\raggedright\parindent 0pt\rmfamily } \setlength{\parskip}{6pt plus 1pt minus 1pt} %\setlength{\parskip}{0pt} \usepackage{kantlipsum} \begin{document} \chapter*{Unnumbered Chapter} Test. \chapter{Title of Chapter} \kant[1] \end{document} Any suggestions on how to achieve the desired layout using the ruled headformat (rather than manual spacing adjustments) would be greatly appreciated.

  • Commutative diagram in xy-pic
    by Olga on March 18, 2026 at 8:08 am

    I want to draw a commutative diagram like the figure below using xy-pic package. But I don't know how to draw a vertical arrow \mapsto in xy-pic. Edit: \documentclass{article} \usepackage[all,cmtip]{xy} \newcommand{\tuple}[1]{\langle #1 \rangle} \begin{document} \[\begin{xy} {\ar@{|->}(0,0)*{};(10,0)*{}}; \end{xy}\] \end{document} I know how to draw commutative diagrams in the \begin{CD} ... \end{CD} environment. But I have a big problem understanding the order of commands in xy-pic

  • How to define a function which can be used with an underline symbol?
    by Sunshine on March 18, 2026 at 6:16 am

    While using the underbrace command, it works as \underbrace{AAAA}_{bbb} is it possible to define a command \newcommand{\newunder}[2]{\underbrace{#1}_{#2}} so that when I use it, the way is the same as the command underbrace above? \newunder{AAAA}_{bbb}

  • Cannot fit long table using longtblr
    by luchonacho on March 18, 2026 at 1:53 am

    Below is a MWE which does not break the table in two pages. I've been playing with the settings inside \begin{longtblr}[]{HERE} but can't figure out the problem. Any ideas? \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{amsmath,amsfonts,amssymb} \usepackage{graphicx} \usepackage[table,xcdraw]{xcolor} \usepackage{bm,setspace} \usepackage{geometry} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \usepackage{multirow} \usepackage{float} \usepackage{caption} \usepackage{lscape} \usepackage{adjustbox} \usepackage{tabularray} \begin{document} Some text here... \begin{landscape} \singlespacing \begin{longtblr}[ caption = {Some text here very long indeed...}, ]{ stretch=0.9, colspec = lcccccccccccccccccccccccccccc, } \midrule Dependent variable: & \multicolumn{23}{c}{Some text here...} \\ \midrule & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria & Austria \\ %\\[-1.8ex] & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) & (11) & (12) & (13) & (14) & (15) & (16) & (17) & (18) & (19) & (20) & (21) & (22) & (23)\\ \hline \\[-1.8ex] A & 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603& 42.603 \\ & (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567)& (55.567) \\ B & $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259& $-$1.259 \\ & (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793)& (0.793) \\ C & 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013& 0.013 \\ & (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010)& (0.010) \\ D & 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229& 0.229 \\ & (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136)& (0.136) \\ E & $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049& $-$0.049 \\ & (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629)& (0.629) \\ F & 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008& 0.008 \\ & (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091)& (0.091) \\ G & $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089& $-$0.089 \\ & (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080)& (0.080) \\ \hline \\[-1.8ex] Observations & 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19& 19 \\ R$^{2}$ & 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497& 0.497 \\ Adjusted R$^{2}$ & 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245& 0.245 \\ \hline \hline \\[-1.8ex] \multicolumn{24}{l}{Note: Significance codes: ***: p<0.01, **: p<0.05, *: p<0.1} \\ \end{longtblr} \end{landscape} \end{document}

  • How to print the solutions for xsim exercises alongside multiple-choice questions?
    by Laurenso on March 17, 2026 at 11:00 pm

    I want to print Exwercises with solutions alongside multiple-choice questions. I tried \documentclass[12pt,a4paper]{article} \usepackage{xsim} \usepackage{tasks} \usepackage[left=2cm,right=2 cm,top=1.5cm,bottom=2cm]{geometry} \ExplSyntaxOn % function to shuffle list name constructed from argument #1 \cs_new_protected:Npn \xsim_shuffle_random_list:n #1 {% make sure lists exists before attempting to shuffle it \xsim_random_list_if_exist:nT {#1} { \xsim_verbose:n {Shuffling~ random~ list~ `#1'} \seq_gshuffle:c {g__xsim_random_#1_seq} } } % modify \printrandomexercises command to shuffle the exercise list first \AddToHook{cmd/printrandomexercises/before}{ \group_begin: % call the shuffle function with the alphabetic representation of the list counter \xsim_shuffle_random_list:n { \int_to_alph:n { \g__xsim_random_list_id_int + 1 } } \group_end: } \ExplSyntaxOff % all code below is unchanged from https://tex.stackexchange.com/a/582183 \NewTasksEnvironment[ label = \textbf{\Alph*.} , label-width = 15pt ]{choice}[\choice](4) \DeclareExerciseEnvironmentTemplate{item} {\description\item[\GetExerciseName~\GetExerciseProperty{counter}]} {\enddescription} \DeclareExerciseEnvironmentTemplate{space} {\textbf{\GetExerciseProperty{counter}} } {\quad} \newcommand*\answer[1]{% \XSIMexpandcode{% \SetExerciseProperty{solution-body} {\noexpand{\Alph{task}}}}% #1% } \DeclareExerciseCollection{part-A} \xsimsetup{ exercise/template = item , solution/template = space , exercise/name = Question , exercise/the-counter = \arabic{exercise}. , exercise/collect , %random/sort = false } \begin{document} \collectexercises{part-A} \begin{exercise} What is the product of $-2$ and $3$? \begin{choice} \choice \answer{$-6$} \choice $6$ \choice $5$ \choice $-5$ \end{choice} \end{exercise} \begin{exercise} What is the sum of the sides of a polygon called? \begin{choice}(2) \choice Leg \choice \answer{Perimeter} \choice Area \choice Volume \end{choice} \end{exercise} \begin{exercise} What is the sum of $-2$ and $-3$? \begin{choice} \choice $-6$ \choice $6$ \choice $5$ \choice \answer{$-5$} \end{choice} \end{exercise} \begin{exercise} Number four \end{exercise} \begin{exercise} Number five \end{exercise} \begin{exercise} What is the sum of $-2$ and $-3$? \begin{choice} \choice $-6$ \choice $6$ \choice $5$ \choice \answer{$-5$} \end{choice} \end{exercise} \collectexercisesstop{part-A} \section{Problems} \printrandomexercises[collection=part-A]{6} \section{Answers} \begin{exercise} first exercise \end{exercise} \begin{solution} first solution \end{solution} \begin{exercise} second exercise \end{exercise} \begin{solution} second solution \end{solution} \begin{exercise} third exercise \end{exercise} \begin{solution} third solution \end{solution} \printsolutions[headings=false] \end{document} I only get I can not print the exercises and solutions in second part: \begin{exercise} first exercise \end{exercise} \begin{solution} first solution \end{solution} \begin{exercise} second exercise \end{exercise} \begin{solution} second solution \end{solution} \begin{exercise} third exercise \end{exercise} \begin{solution} third solution \end{solution} How can I print them?

  • Projective limit spanish acute accent
    by Esteban Saldarriaga-Marin on March 17, 2026 at 7:24 pm

    I am using babel package with Spanish style (in amsart class), which puts acute accents in math symbols such as \lim, \max, \inf, etc. It is actually nice, because it keeps all the formatting in the same language and style. However, it doesn't put the accent in \varprojlim, which doesn't go with the general layout. Is it possible to make \varprojlim have the accent as everything else? MWE: \documentclass{amsart} \usepackage[spanish]{babel} \usepackage{amssymb,amsfonts,amsmath} \begin{document} \[ \lim \; \inf \; \max \] \[ \varprojlim \] \end{document} Result:

  • How can I make Pandoc convert bullet points to signature lines when converting to PDF?
    by Rich006 on March 17, 2026 at 6:02 pm

    I am trying to create a printable document that contains many lists of signature lines. In LaTeX I would use something like \documentclass{article} \begin{document} Please sign for the following items. \rule[-2pt]{2cm}{1pt} First item \rule[-2pt]{2cm}{1pt} Second item \end{document} to generate this . However, LaTeX is not an option because the document source must be in a format that is easy for non-expert users to edit, for example github-flavored markdown like this: Please sign for the following items. - First item - Second item I plan to set up a continuous integration pipeline to automatically convert the source document to printable form such as PDF, and host it on a web site. How can I use pandoc or another tool to change the markdown bullets to signature lines, so I get the desired output? pandoc source.md -f gfm -o output.pdf produces which looks nice except that I want signature lines instead of bullet points.

  • How to choose the correct blacker value for 9600 dpi to match the output of the lexmarkr mode?
    by Apoorv Potnis on March 17, 2026 at 4:37 pm

    I want to generate a thicker version of the original bitmap Computer Modern fonts as shown in this answer by mickep, but for 9600 dpi. I get the following output with the lexmarkr mode. The PDF viewer used for the above screenshot was Microsoft Edge (with the #edge-new-pdf-viewer disabled so that the legacy PDF viewer is used) on Windows 11 at 500% zoom on a screen of resolution 1920 by 1080. The lexmarkr mode as defined in modes.mf reads as follows (line 1641 onwards). % Michael Covington's ({\tt mcovingt@ai.uga.edu}) definition for the % Lexmark Optra R (4049), reflecting a taste for a heavier than % normal rendition of the Computer Modern fonts. % % You may prefer a lesser value of blacker (down to maybe 1.0). % Initially tested on 10, 12, 17-point CMR and 10-point math italic. % % While we're talking about the Optra R, here's another useful fact: % it takes 32-bit-wide 72-pin SIMMs, 70 or 80 ns. Contrary to the % documentation, you do not have to use IBM's special SIMMs. % % The resolution of 1200 and the |blacker| value of 3 causes {\tt cmbsy7} % to be generated with incorrect arrows and radical sign. The % |vtftzzlo| mode also fails. Decreasing |blacker| to 2 works around. % From {\tt infovore@xs4all.nl} (Olaf Weber) and Henrik Schmiediche. % mode_def lexmarkr = %\[ Lexmark Optra R 4049 (1200dpi) mode_param (pixels_per_inch, 1200); mode_param (blacker, 2); % used to be 3; works around {\tt cmbsy7} bug mode_param (fillin, 0); mode_param (o_correction, 1); mode_common_setup_; enddef; LexmarkOptraR := lexmarkr; As one can see, the lexmarkr mode defines the pixels_per_inch parameter to be 1200. I want to set it to 9600. For reasons that I don't understand, TeX does not accept the value 9600 directly. But one can write 9600 as 4000 + 4000 + 1600 as defined by the ibx mode (line 1560 onewards). I thus added the following test mode and compiled with this new mode. % Test by Apoorv Potnis mode_def apoorvtest = mode_param (pixels_per_inch, 4000 + 4000 + 1600); mode_param (blacker, 2); mode_param (fillin, 0); mode_param (o_correction, 1); mode_common_setup_; enddef; The result is as follows. I guess I've to 'scale' the blacker parameter to get the same visual output. I tried many values, including cranking it up to 100. I can't see any visual difference even with 100 as the blacker value. How do I find out the correct blacker value in this case? Below is the MWE that I used. % \pdfpkresolution=1200 % \pdfpkmode={lexmarkr} \pdfpkresolution=9600 \pdfpkmode={apoorvtest} \pdfmapfile{} \documentclass{article} \begin{document} Some text, and a formula: $D\tan x=1+\tan^2x$. \end{document} The above MWE was compiled with gsudo fmtutil-sys --byfmt mf && gsudo mktexlsr && Remove-Item -Recurse -Force "C:\Users\apoor\.texlive2026\texmf-var\fonts\pk" && pdflatex test.tex. (TeX Live 2026 on Windows 11 and Powershell)

  • how do i uncomment a multiline text? [duplicate]
    by B Bb on March 17, 2026 at 4:24 pm

    i want a simple command just like how you can use ctrl+t for commenting multiline text if there is none, alternative solutions are welcome. I tried selecting the % in the editor and ended up selecting the whole thing making me delete them

  • tikz, scaling widths of lines
    by Zarko on March 17, 2026 at 2:39 pm

    It seems (or is apparently) that thickness of lines is hart coded. Consequently at driving of an line, the use for example scale=2 make line only longer and its thickens is not changes, see MWE below: \documentclass[margin=3mm, varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{LA/.style = {-Straight Barb, line width=1mm}} \begin{document} \begin{tikzpicture} \draw[LA] (0,0) -- ++ (2,0); \end{tikzpicture} \begin{tikzpicture}[scale=2] \draw[LA] (0,0) -- ++ (2,0); \end{tikzpicture} \end{document} Does exist some trick by which will be scaled thickness of line too? The best way would be as option of the line style, which will has effect just on this particular line. My quick search on site so far didn't give me any suggestion ...

  • TikZ / xint: break a loop at the second term, which is 1.0000
    by cis on March 17, 2026 at 11:34 am

    The following loop is an example of a loop that, starting from a certain sequence member, is rounded to 1.0000. How can I break the loop at the second term, which is 1.0000 (in this example, that's the 13th)? Note: I'm using TikZ and xint; both are possible options. \documentclass[margin=5pt, varwidth]{standalone} \usepackage{tikz} \usepackage{xintexpr} \begin{document} \foreach \x in {1,...,15}{%% \x: \xintround{4}{\xinteval{1-exp(-\x/1.2)}}\par }%% \end{document}

  • How to use twocolumn-mode after paracols without a pagebreak
    by Niranjan on March 17, 2026 at 10:31 am

    I have the following code: \documentclass{article} \usepackage{graphicx} \usepackage{microtype} \usepackage{xcolor} \usepackage{paracol} \usepackage{kantlipsum} \begin{document} \title{Sample title} \author{Sample author} \maketitle \begin{paracol}{2} \kant[1-2]% \switchcolumn \color{green}% \kant[1-3]% \end{paracol} \medskip \noindent\rule{\linewidth}{0.5pt} \medskip \begingroup \let\clearpage\relax \twocolumn \endgroup \kant[1-2] \begin{figure*}[t]% \centering \includegraphics{example-image-a}% \caption{Test figure}% \end{figure*} \kant[3-4] \end{document} The objective is to start the twocolumn mode just after the paracols are finished. Please note that this is used inside a production environment and I don't really have any control over the content. It is generated in a non-standard syntax and it should be treated as it is. What I mean is, in this case, please abstain from editing the sample text \kant and the sample float in any way. I want a solution that will externally process the content exactly as I have written it and still give the expected results. I can't use multicol package as I need to use table* and figure* environments which are not supported with that package. Is there any way to prevent the twocolumn text from overlapping with the paracols text? Is there any other package that supports this kind of typesetting?

  • Setting Up Margins for a Landscape A5 Book with Top Binding
    by Thomas on March 17, 2026 at 10:24 am

    I'm creating a landscape booklet with top ring binding, and I want it to be read across both pages when opened. I've been trying to set up inner and outer margins, but the information I find mostly covers how to do this when the book is bound on the left edge. What I need is to have different top and bottom margins for odd and even pages, like: Odd pages: 25mm top margin, 10mm bottom margin Even pages: 10mm top margin, 25mm bottom margin I’ve tried using the memoir and book classes, along with geometry, but I’m open to other suggestions as well. Could someone explain the recommended setup for this kind of book format? Any help would be greatly appreciated! A (blurry, will update..) picture of the layout I am thinking of. Thanks!

  • Is it possible to pass tikzpicture as argument to chapter or section header
    by Dieter on March 17, 2026 at 9:57 am

    Complete rework of this question to better match my problem. My fist version was just not suitable I need to add margin notes to a two column environment. I am using a solution based on this question: Margin notes, multicols, tikz overlay Everything works fine, but I also need to add marginnotes to section headers. But I get Undefined control sequence. How can I avoid this error message? MWE \documentclass{scrbook} \usepackage{scrlayer-scrpage} \usepackage{babel} \babeltags{dutch=dutch} \babeltags{dan=danish} \babeltags{swed=swedish} \babeltags{brit=british} \babeltags{fren=french} \babeltags{ital=italian} \babeltags{espan=spanish} \babeltags{port=portuguese} \babeltags{german=german} \usepackage[no-math]{fontspec} \usepackage[babel=true,nopatch=footnote,letterspace=150,]{microtype} \usepackage[colaction]{multicol} \usepackage{ragged2e} \usepackage{rotating} \usepackage{enumitem} \newlist{LanguageEntry}{itemize}{1} \setlist[LanguageEntry]{ noitemsep,% partopsep=0pt,% topsep=0pt,% parsep=0.3\baselineskip,% labelindent=2em,% labelwidth=2.8em,% align=parleft,% leftmargin=!,% } \DeclareNewSectionCommand[% style=section,% level=2,% beforeskip=4pt,% afterskip=0pt,% runin=false,% font=\normalfont\Large,% tocindent=0pt,% tocnumwidth=0pt,% ]{dictionaryentry} \RenewCommandCopy{\raggedsection}{\RaggedRight} \newcommand{\entry}[3][]{\def\thedictionaryentry{#2}\dictionaryentry[#1]{#3}\allowbreak}%%edited here \newcommand{\entrygeneric}[3][]{% \begin{LanguageEntry}[#1] \item[\textit{#2}]{\RaggedRight #3} \end{LanguageEntry} }% \newcommand{\entrynl}[2][]{\entrygeneric[#1]{Holl.} {\begin{dutch} #2 \end{dutch}}} \newcommand{\entryda}[2][]{\entrygeneric[#1]{Dän.} {\begin{dan} #2 \end{dan}}} \newcommand{\entrysw}[2][]{\entrygeneric[#1]{Schw.} {\begin{swed} #2 \end{swed}}} \newcommand{\entryen}[2][]{\entrygeneric[#1]{Engl.} {\begin{brit} #2 \end{brit}}} \newcommand{\entryfr}[2][]{\entrygeneric[#1]{Franz.} {\begin{fren} #2 \end{fren}}} \newcommand{\entryit}[2][]{\entrygeneric[#1]{Ital.} {\begin{ital} #2 \end{ital}}} \newcommand{\entryes}[2][]{\entrygeneric[#1]{Span.} {\begin{espan} #2 \end{espan}}} \newcommand{\entrypt}[2][]{\entrygeneric[#1]{Port.} {\begin{port} #2 \end{port}}} % Based on % https://tex.stackexchange.com/questions/163567/margin-notes-multicols-tikz-overlay \usepackage{tikz} \newlength{\test} \def\Note#1{% \begin{tikzpicture}[remember picture,overlay] \coordinate (here) at (0,0); %compute horizontal offset from origin to center \pgfextractx{\test}{\pgfpointdiff{\pgfpointorigin} {\pgfpointanchor{current page}{center}}}% \ifdim\test < 0pt% \draw (current page.east |- here)+(-0.5in,0pt) node[anchor=text,align=left,text width=0.5in]{\strut #1}; \else \draw (current page.west |- here)+(0cm,0pt) node[anchor=text,align=right,text width=0.5in]{\strut #1}; \fi% \end{tikzpicture}% \ignorespaces% }% \begin{document} \begin{multicols}{2}\raggedcolumns%%Edited here % AAK \entry{AKK\Note{Note 1}}{Der Name eines Fahrzeugs für Rheinwein nach Holland gebracht wird.} \entrynl{Aak.} \entryda{Et Fartöj paa Rhinſtrömmen.} \entrysw{Et Farto̊g ſom nyttias på Rhinſtrömen.} \entryen{A ſort of flat bottomed lighter.} \entryfr{Aque, Acque.} \entryit{Un battello con fondo piano, di cui ſi ſervono ſopra il Reno.} \entryes{Una barca con fondo llano. ſobre el Reno.} \entrypt{Eſpecie de barca chata ſobre o Rheno.} Additional text for this dictionary entry.\Note{Note 2} % AAP. (Hochdeutſch Affe.) \entry{AAP.}{(Hochdeutſch Affe.)} \entrynl{Aap.} \entryda{Aben.} \entrysw{Apan.} \entryen{The mizen ſtay-ſail.} \entryfr{Voile d’etay d’artimon.} \entryit{La carbonera, o ſia la vela.} \entryes{Vela del humo, o vela.} \entrypt{Rabeca, ou vela do.} % ABAB \entry{ABAB.}{} \entrynl[beginpenalty=100000]{Een turkſch Matroos.} \entryda{En tyrkiſk Matros.} \entrysw{En tyrkiſk Matros.} \entryen{A turkiſh ſailor.} \entryfr{Un matelot turc.} \entryit{Un marinaro turco.} \entryes{Un marinero turco.} \entrypt{Hum marinheiro turco.} % AAPENFALL \entry{AAPENFALL.}{} \entrynl[beginpenalty=100000]{Aapenval.} \entryda{Abe-Fald.} \entrysw{Apan-eller Aben-Fall.} \entryen{The haliard of the mizen-ſtay-ſail.} \entryfr{La driſſe de la voile d’etay d’artimon.} \entryit{La drizza della carbonera.} \entryes{La driza de la vela del humo.} \entrypt{A driça da rabeca.} % ABAB \entry{ABAB.}{} \entrynl[beginpenalty=100000]{Een turkſch Matroos.} \entryda{En tyrkiſk Matros.} \entrysw{En tyrkiſk Matros.} \entryen{A turkiſh ſailor.} \entryfr{Un matelot turc.} \entryit{Un marinaro turco.} \entryes{Un marinero turco.} \entrypt{Hum marinheiro turco.} % ABANDONNEMENT \entry{ABANDONNEMENT.}{} \entrynl[beginpenalty=100000]{Het Abandoneeren van een Schip \&c. aan den Verzekeraar.} \entryda{En Afſtaaelſe og Overladelſe af Gods eller Skib til Aſſuradeuren.} \entrysw{Abandonera förſäkrade Skepp eller Gods til Aſſecuradeuren.} \entryen{The abandoning of a veſſel or goods to the inſurer for getting paid the inſured ſum.} \entryfr{Abandonnement.} \entryit{Abandonamento, ceſſione.} \entryes{Abandono.} \entrypt{Deixaçaõ, inteira ceſſaõ.} % ABANDONNEMENT \entry{ABANDONNEMENT.}{} \entrynl[beginpenalty=100000]{Het Abandoneeren van een Schip \&c. aan den Verzekeraar.} \entryda{En Afſtaaelſe og Overladelſe af Gods eller Skib til Aſſuradeuren.} \entrysw{Abandonera förſäkrade Skepp eller Gods til Aſſecuradeuren.} \entryen{The abandoning of a veſſel or goods to the inſurer for getting paid the inſured ſum.} \entryfr{Abandonnement.} \entryit{Abandonamento, ceſſione.} \entryes{Abandono.} \entrypt{Deixaçaõ, inteira ceſſaõ.} \end{multicols} \end{document}

  • Typesetting a coffin at the start of a text line
    by ysalmon on March 17, 2026 at 9:11 am

    I am giving a try at coffins, and I joined two coffins to typeset material side by side on a line. However, \TypesetCoffin does not put the resulting coffin at the left hand side of the page, but introduces a small gap, as evidenced by the boxes below. Why is that, and how do I tell it not to ? \documentclass{article} \usepackage{showframe,xcoffins} \fboxsep 0pt \begin{document} \noindent \NewCoffin\CoffinExG \NewCoffin\CoffinExD \SetVerticalCoffin\CoffinExG{.72\textwidth}{material} \SetVerticalCoffin\CoffinExD{.28\textwidth}{\hfill material} \JoinCoffins\CoffinExG[b,r]\CoffinExD[b,l] \fbox{\TypesetCoffin\CoffinExG} \end{document}

  • How to correctly place a label on a bent arrow using to[bend] in TikZ
    by Bubble Man on March 17, 2026 at 5:40 am

    I draw an arrow with a label like this. \documentclass[dvipdfmx]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[auto=left] \node[name=A] at (0,0) {$A$}; \node[name=B] at (1,0) {$B$}; \draw[->] (A) -- (B) node[pos=0.5]{$f$}; \end{tikzpicture} \end{document} I like this notation because the order is “a coordinate, a coordinate, and a label.” This is more readable than “a coordinate, a label, and a coordinate.” I want to bend the arrow while keeping this order. I tried the following: \documentclass[dvipdfmx]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[auto=left] \node[name=A] at (0,0) {$A$}; \node[name=B] at (1,0) {$B$}; \draw[->] (A) to[bend left=30] (B) node[pos=0.5]{$f$}; \end{tikzpicture} \end{document} However, this does not work properly—the label appears at coordinate A. I know I can achieve this with a \newcommand, but is there another way? Thank you.

  • border of standalone missing margin with tabular?
    by Explorer on March 17, 2026 at 5:15 am

    The code comes from Mico's answer. \documentclass[border=6pt,varwidth]{standalone} \usepackage[table]{xcolor} \definecolor{headorange}{RGB}{255,127,0} \definecolor{creamlight}{RGB}{255, 242, 215} \definecolor{creamdark}{RGB}{255, 255, 143} \usepackage{array} \arrayrulecolor{white} \setlength{\arrayrulewidth}{1.6pt} \renewcommand{\arraystretch}{1.9} \setlength{\tabcolsep}{0pt} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \newcolumntype{H}{>{\columncolor{headorange}\color{white}\boldmath}C{1.25cm}} \newcolumntype{L}{>{\columncolor{creamlight}}C{1.8cm}}%<---- \newcolumntype{D}{>{\columncolor{creamdark}}C{1.8cm}}%<---- \begin{document} \begin{tabular}{|H|L|D|L|D|L|D|} \hline $x$ & $-1$ & $-0.8$ & $-0.4$ & $0$ & $0.4$ & $1$ \\ \hline $y$ & & $1.4$ & & $-1$ & $-0.6$ & \\ \hline \end{tabular} \end{document} Noted that with C{1.8cm}, the right margin missing! Thanks to cfr, the warning shows along: Overfull \hbox (10.65623pt too wide) in paragraph at lines 23--30 [][] while changed to: \newcolumntype{L}{>{\columncolor{creamlight}}C{1.65cm}} \newcolumntype{D}{>{\columncolor{creamdark}}C{1.65cm}} The margin appeared as normal(and what I expected): In texdoc standalone, sec.5.2: This option uses the varwidth package to wrap the content into a varwidth environment, which is based on minipage, but will always use the natural width of the content if it is smaller than the given maximum width. The resulting effect is that the created paragraph will not cause any additional width and that multiple paragraphs can be included as part of the content. The used maximal width (which is provided to the underlying minipageenvironment) is \linewidth by default, but can be set by providing a width as value to the option. Maybe the deafault value here mattered? But why standalone has a \linewidth, the tabular behaviour when C{1.8cm} confused me with the missing right margin. Any paraphase or how to prevent the unexpected case?

  • How to align tabular on the left with the table is under another table? [duplicate]
    by user516076 on March 17, 2026 at 1:08 am

    Why can't I use \newline? Even entering and giving it \vspace doesn't work. \documentclass[border=6pt]{standalone} \usepackage[table]{xcolor} \usepackage{array} \definecolor{headorange}{RGB}{255,127,0} \definecolor{creamlight}{RGB}{255, 242, 215} \definecolor{creamdark}{RGB}{255, 255, 143} \arrayrulecolor{white} \setlength{\arrayrulewidth}{1.6pt} \renewcommand{\arraystretch}{1.9} \setlength{\tabcolsep}{0pt} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \newcolumntype{H}{>{\columncolor{headorange}\color{white}\centering\arraybackslash\bfseries\itshape}m{1.25cm}} \newcolumntype{L}{>{\columncolor{creamlight}\centering\arraybackslash}m{1.8cm}} \newcolumntype{D}{>{\columncolor{creamdark}\centering\arraybackslash}m{1.8cm}} \begin{document} \begin{tabular}{|H|L|D|L|D|L|D|} \hline $x$ & $-1$ & $-0.8$ & $-0.4$ & $0$ & $0.4$ & $1$ \\ \hline $y$ & & $1.4$ & & $-1$ & $-0.6$ & \\ \hline \end{tabular} \newline \vspace{4mm} \begin{tabular}{|H|L|D|L|D|L|} \hline $x$ & $1.2$ & $1.6$ & $2$ & $2.4$ & $2.8$ \\ \hline $y$ & & $2.6$ & & & \\ \hline \end{tabular} \end{document} I want the second table on the right side is exactly under the first table and they are left aligned. Like this:

  • How to modify the chapter headings using \EditInstance
    by polaren on March 16, 2026 at 4:50 pm

    Below is the MWE I was too lazy to make yesterday. As noted in comments in the MWE I (surprisingly?) need ragged2e to make it compile and (understandably?) hyperref to make the PDF pass VeraPDF. \DocumentMetadata{ lang = sv, pdfversion = 2.0, pdfstandard = ua-2, tagging = on, } \tagpdfsetup{math/mathml/luamml/load=false} \documentclass[11pt,a4paper,twoside,final]{report} \usepackage[margin=25mm,top=24mm,bottom=24mm,nomarginpar,nohead,footskip=11mm]{geometry} \usepackage[document]{ragged2e} % Needed for compilation. \usepackage{hyperref} % Needed to pass VeraPDF. \hypersetup{ pdftitle={MWE}, pdfauthor={polaren}, pdfsubject={First question to LaTeX Stack Exchange.}, } \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=0mm, before-sep=0mm, start-code=\clearpage\vspace*{-10.75mm}\rule{\textwidth}{0.1mm}\newline\vspace*{-18mm}, final-code=\vspace*{-5mm}\rule{\textwidth}{0.1mm}\newline\vspace*{4mm}, headformat-instance=hang, decls=\raggedright\parindent 0pt\rmfamily } \setlength{\parskip}{6pt plus 1pt minus 1pt} %\setlength{\parskip}{0pt} \begin{document} \chapter*{Testing starred chapter} Test. \chapter{Testing numbered chapter} Test. \end{document} I'm trying to make a \chapter (and \chapter*) heading looking like the picture below. The document must be accessible, so I'm using the \EditInstance command. With the following code (found pretty much by trial and error) \EditInstance{heading}{chapter}{ number-format=\makebox[12mm][l]{\theheading.}, number-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, title-decls=\sffamily\fontsize{14pt}{16pt}\selectfont, after-sep=0mm, before-sep=0mm, start-code=\clearpage\vspace*{-10.75mm}\rule{\textwidth}{0.1mm}\newline\vspace*{-18mm}, final-code=\vspace*{-5mm}\rule{\textwidth}{0.1mm}\newline\vspace*{4mm}, headformat-instance=hang, decls=\raggedright\parindent 0pt\rmfamily } I get something that looks okay, but I strongly suspect this is far from the best way to do this. For example, this solution depends on the value of \parskip which doesn't seem right (I have \parskip set to 6pt). Also, the \vspace commands indicate this isn't done right. Any suggestions on how to do this more robustly are most welcome. I'm using lualatex-dev on Windows/MikTeX: "This is LuaHBTeX, Version 1.24.0 (MiKTeX 26.2)".

  • Trimming causes compilation failure
    by BambOo on March 16, 2026 at 2:59 pm

    I'm using https://tex.stackexchange.com/a/647838/141947 to operate over a list of image files to include them easily in a document. For some reason, adding a trim option to \includegraphics results in a compilation failure with File ended while scanning use of \Gread@parse@vp Why does it break ? MWE \documentclass{article} \usepackage{graphicx} \ExplSyntaxOn \NewDocumentCommand{\plotloop}{O{.}m} {% #1 = common prefix, default . for the current directory % #2 = list of file names \clist_map_inline:nn { #2 } { \begin{figure}[p] \centering \includegraphics[scale=1, angle=90]{example-image-##1} % Works % \includegraphics[scale=1, angle=90, trim={0cm 0cm 0cm 0cm},clip]{example-image-##1} % Fails \caption{Left~\protect\detokenize\expandafter{example-image-##1}} \end{figure} \begin{figure}[p] \centering \includegraphics[{scale=1, angle=90}]{example-image-##1} \caption{Right~\protect\detokenize\expandafter{example-image-##1}} \end{figure} } } \ExplSyntaxOff \begin{document} \plotloop{a,b,c} \end{document}

  • Theorem citation style [duplicate]
    by Davide on March 15, 2026 at 12:23 pm

    I would like to cite theorems in my manuscript by specifying the reference in the theorem title. I tried using the following code: \begin{theorem}[{\cite[Thm.~2.5]{reference_paper}}] Statement of the theorem \end{theorem} or \begin{theorem} \cite[Thm.~2.5]{reference_paper}. Statement of the theorem \end{theorem} These produce the first two results shown in the attached image, but I would prefer something similar to the third row. Being able to remove the space after '(' in the first example would also be fine. Do you have any suggestions? Thanks in advance! This question is similar to this, but I do not want to specify the number manually and was looking for a more LaTeX-style way of doing it.

  • Count spaces in LaTeX
    by Vincent on March 12, 2026 at 7:11 pm

    I would like to create a fast/optimized fully expandable function that counts the number of spaces in an argument: \documentclass{article} \begin{document} \countspaces{ A B } % Should return 3 (1 is ok too if leading and trailing spaces are removed) \countspaces{A \mycommand B} % Should return 2 (\mycommand is not expanded) \countspaces{A {a b c} B} % Should return 2 (spaces inside groups are not counted) \end{document} Explicit spaces should be counted too. How to achieve that?