Hot
- Eyelet character in LaTeXby Grzegorz Brzęczyszczykiewicz on April 18, 2026 at 5:16 pm
How do I write the eyelet character (T1 code 24) in LaTeX? Is there a dedicated command or is \char24 the only option? If there is no dedicated command, I am using \char24 and it works but if the font isn't T1 it spits out a different mark as \char is a generic command and does not look at encoding. If you don't know what this character is, it's used after % to make ‰ and ‱. Here is this character in my own font I designed using METAFONT: and here it is in the T1 version of Computer Modern The question is: is there a dedicated command, or is \char24 all there is?
- providing a mathchancery alphabetby Antonis on April 18, 2026 at 4:48 pm
unicode-math provides for two calligraphic sets. These are \mathcal/\symcal and \mathscr/\symscr. By default they produce the same output but one can separate them using something like \setmathfont[rang={\mathscr,\mathbfscr},StylisticSet=1]{NewCM10-Regular.otf} Then \mathscr will give different results than \mathcal. Unicode supports three variants accessed with Variation Selectors U+FE00 and U+FE01. The former switches to chancery and the latter to roundhand. However, TeX engines do not support Variation Selectors. So it seems proper to introduce a third alphabet variant called for example \mathchancery or \symchancery. NewComputerModern will provide three calligraphic alphabets in next release after restoring Knuthian Calligraphics as default (mathcal). The Euler style calligraphic is now the chancery variant and the roundhand remains as \mathscr. My question is if it is easy to introduce this extra \mathchancery alphabet with newcomputermodern.sty until unicode-math incorporates such an addition, and how to do it?
- Issue with eps-file naming using lyluatexby scenario on April 18, 2026 at 3:58 pm
I'm using Kile Version 2.9.93, producing pdfs with lualatex. I was trying to incorporate music notes into my documents with the lyLuaTEX package. This is working almost fine, just a slight issue: lualatex is calling lilypond to generate the music notes in an eps-file. Then epstopdf's job is to convert the XYZ.eps to XYZ.pdf. That's exactly what it does, but in the log-file it claims to produce XYZ-eps-converted-to.pdf. This file is then searched after by lualatex, resulting in an error "! Package luatex.def Error: File `XYZ-eps-converted-to.pdf' not found: using draft setting." My workaround so far is to make a copy of XYZ.pdf and rename it accordingly, which works fine. Anyway I would prefer a smarter solution. Anyone has an idea?
- How to change "exercises" counter in tcolorbox?by Gallagher on April 18, 2026 at 2:03 pm
I use tcolorbox to create exercises. How can the exercise counter be set so that the numbering starts at 4 instead of 1? Exercice 4 Exercice 5 Exercice 6 \documentclass[a4paper,11pt]{article} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{lipsum} \usepackage[many,most]{tcolorbox} \tcbset{mystyle/.style={ breakable, enhanced, outer arc=0pt, arc=0pt, colframe=blue, colback=blue, attach boxed title to top left, boxed title style={ colback=blue, outer arc=0pt, arc=0pt, left=5pt, right=5pt, top=1pt, bottom=1pt, }, fonttitle=\large\bfseries\sffamily } } \newtcolorbox[auto counter]{exercise}[1][]{ mystyle, colback=white, leftrule=0pt, rightrule=0pt, toprule=1.2pt, bottomrule=0pt, title= >> Exercise \textnumero \,\thetcbcounter, overlay unbroken and first={ \path let \p1=(title.north east), \p2=(frame.north east) in node[anchor=west,font= \bfseries\sffamily\itshape,color=blue,text width=\x2-\x1,align=left] at (title.east) {#1}; } } \begin{document} %%% Here I want to start exercise at 4 instead of 1 \begin{exercise}[... some text] \lipsum[2] \end{exercise} \begin{exercise}[... some text] \lipsum[2] \end{exercise} \begin{exercise}[... some text] \lipsum[2] \end{exercise} \end{document}
- Make dynamical solutions for a problem sheetby Rassine Orange on April 18, 2026 at 1:09 pm
I am writing a problem sheet for my students (I'm a math teacher) and I would like a way for my code to compute dynamically the solutions: The numerical variables are stored in a \def, so then I can change them anytime and the solution are automatically adapted. I need a way to create a "dynamical list" to print the solution at the end of the document. For example, the questions would be something like this \begin{enumerate} \def\a{5} \def\b{3} \edef\MYsum{\fpeval{a+b}} \edef\MYproduct{\fpeval{a*b}} \item Compute the sum $a+b$. %What to write here to store the answer "somewhere"? \item Compute the product $ab$. %What to write here to store the answer "somewhere"? \end{enumerate} %Here goes other questions, some text, etc. %And here, at the very end, I want the solutions: %The command below should print something like \MYsum ; \MYproduct %It will display, in my example, 8 ; 15 but if then I change the values of \a and \b, the results are also modified. \printthesolutiosn
- Composing two pages with an upside down partby Colas on April 18, 2026 at 12:54 pm
I am typesetting a worksheet in landscape A4, two columns, where each spread (two pages) contains: several exercises (\begin{enonce}) occupying at least two columns (possibly spilling onto the next page), and their solutions (\begin{solution}) occupying at most two columns, printed upside down at the bottom of the page so that the reader must flip the sheet to read it. See the diagram below for the intended layout. The document must support several such spreads in sequence. Constraints The total content of one spread never exceeds two landscape pages. I take responsibility for avoiding overlap between the exercise and the solution; the code does not need to handle it automatically. What the code must guarantee is that the solution columns are exactly superimposed on the exercise columns (same \textwidth, same \columnsep, same horizontal offsets). Question What is the cleanest way to make this pattern repeatable for an arbitrary number of spreads, while keeping the column alignment guarantee? I am open to approaches based on atbegshi, everypage, pgfpages, scrlayer, or anything else that fits. Remarks Here is what my document looks like so far, without having handled this "upside down" feature. I have dealt with columning with multicol.
- Cleaning failed, permission denied to remove file 'main.log' why?by LenkaH9 on April 18, 2026 at 10:09 am
My document \documentclass[12pt]{article} worked as long as there's been only one file containing the whole text with a .tex ending which I added to the main.tex by \input. Since I want to move forward with my text I created separate .tex files for each chapter and since then I receive this message and can't compile anymore. I tried to complie only chapters without citations of the bibliography as well as chapters with citations and bot hdidn't work. In fact, the citations don't work in the text but are shown only in bold letters without the right citation format. Cleaning failed: Latexmk: Error on first line of 'main.log'. This is apparently not a TeX log file. The first line is: Latexmk: Using biber to make bibliography file(s). Latexmk: Cannot remove file 'main.log' Error message = 'Permission denied' This message may duplicate earlier message. Latexmk: Failure in processing file 'c:/Users/[MYUSERNAME]/Documents/SoSe-2026/Masterarbeit/masterarbeit/main.tex': Log file 'main.log' appears to have wrong format. Latexmk: Sometimes, the -f option can be used to get latexmk to try to force complete processing. But normally, you will need to correct the file(s) that caused the error, and then rerun latexmk. In some cases, it is best to clean out generated files before rerunning latexmk after you've corrected the files. Reverting Windows console CPs to (in,out) = (850,65001)
- How to construct the "double dotted"-framed box?by Explorer on April 18, 2026 at 3:04 am
What I tried to replicate is something as below: Noted that the double-dotted is aligned as the red line denoted, and the "rotated box" is NOT what I want(just because the image I get rotated itself), I just want something the same as \dashbox or \doublebox, the normal horizonal box. The post here, I think, just want to focus the dots alignment. Now I have the following code: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{tikz} \usepackage{lipsum} \usepackage{dashbox} \usepackage{fancybox} % https://tex.stackexchange.com/a/101263/322482 \makeatletter \tikzset{ dot diameter/.store in=\dot@diameter, dot diameter=3pt, dot spacing/.store in=\dot@spacing, dot spacing=10pt, dots/.style={ line width=\dot@diameter, line cap=round, dash pattern=on 0pt off \dot@spacing }, } \tcbset{ doubledotted/.style={ empty, sharp corners, frame engine=path, frame empty, frame code={ \draw[dots](frame.south west) rectangle (frame.north east); \draw[dots]([xshift=-\dot@spacing,yshift=-\dot@spacing]frame.south west) rectangle ([xshift=\dot@spacing,yshift=\dot@spacing]frame.north east); }, } } \makeatother \begin{document} AAA \qquad\tcbox[doubledotted,nobeforeafter,box align=center]{This is a tcolorbox.}\qquad BBB \vspace{1cm} \begin{tcolorbox}[doubledotted] \lipsum[2] \end{tcolorbox} \bigskip \fbox{This is a framebox.} \dashbox{This is a dashed framebox.} \doublebox{This is a doublebox.} \end{document} which gives: The disturbing point is that the dotted in a \path is hard to control the alignment precisely. I have to cliam that, I think that would be two different approach to achieved this: One with tcolorbox and tikz Another with some "plain" approaches for example dashedbox and fancybox: fancybox.sty: % fancybox.sty % Line 143 \def\doublebox{\VerbBox\@doublebox} \def\@doublebox#1{% \begingroup \setbox\@fancybox\hbox{{#1}}% \fboxrule=.75\fboxrule \setbox\@fancybox\hbox{\fbox{\box\@fancybox}}% \fboxrule=2\fboxrule \fboxsep=\fboxrule \advance\fboxsep .5pt \fbox{\box\@fancybox}% \endgroup} dashbox.sty: %% %% This is file `dashbox.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% dashbox.dtx (with options: `package') %% Dashed and layered boxes. %% %% File `dashbox.dtx'. %% Copyright (C) 1997-2001 Reuben Thomas (rrt@sc3d.org) %% This file is distributed under the LaTeX Project Public License, %% and comes with no warranty. %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{dashbox} [2001/12/11 v1.14 Dashed and layered boxes] \RequirePackage{calc} \RequirePackage{ifthen} \newlength{\dashlength} \setlength{\dashlength}{6pt} \newlength{\dashdash} \setlength{\dashdash}{3pt} \newlength{\layersize} \setlength{\layersize}{\dashdash} \newcommand{\hd@shrule}[1]{% \hbox to #1% {\vrule height \fboxrule width \dashdash% \cleaders\hbox to \dashlength% {\hfill\rule{\dashdash}{\fboxrule}\hfill}\hfill% \ifthenelse{\lengthtest{#1 > 2\dashdash}}% {\vrule height \fboxrule width \dashdash}{}% }} \newcommand{\vd@shrule}[1]{% \vbox to #1% {\hrule height \dashdash width \fboxrule% \cleaders\vbox to \dashlength% {\vfill\rule{\fboxrule}{\dashdash}\vfill}\vfill% \ifthenelse{\lengthtest{#1 > 2\dashdash}}% {\hrule height \dashdash width \fboxrule}{}% }} \newsavebox{\d@shedsavebox} \newlength{\d@shedboxwidth} \newlength{\d@shedboxtotalheight} \newcommand{\m@kedashbox}{% \setlength{\d@shedboxtotalheight}% {\dp\d@shedsavebox+\ht\d@shedsavebox+\fboxsep*2+\fboxrule*2}% \raisebox{-\fboxrule-\fboxsep-\dp\d@shedsavebox}{% \parbox[b]{\d@shedboxwidth}{% \offinterlineskip% \parskip=0pt% \hd@shrule{\d@shedboxwidth}% \kern-\fboxrule% \par% \parbox{\fboxrule}{\vd@shrule{\d@shedboxtotalheight}}% \kern\fboxsep% \parbox{\wd\d@shedsavebox}% {\vspace{\fboxsep}\usebox{\d@shedsavebox}\vspace{\fboxsep}}% \kern\fboxsep% \parbox{\fboxrule}{\vd@shrule{\d@shedboxtotalheight}}% \par% \kern-\fboxrule% \hd@shrule{\d@shedboxwidth}}% }} \newcommand{\dbox}[1]{% \sbox{\d@shedsavebox}{#1}% \setlength{\d@shedboxwidth}{\wd\d@shedsavebox+\fboxsep*2+\fboxrule*2}% \m@kedashbox} \def\dashbox{\@ifnextchar[\@dashbox\dbox} \def\@dashbox[#1]{\@ifnextchar[{\@idashbox[#1]}{\@idashbox[#1][c]}} \long\def\@idashbox[#1][#2]#3% {\setlength{\d@shedboxwidth}{#1}% \savebox{\d@shedsavebox}[#1-\fboxsep*2-\fboxrule*2][#2]{#3}% \m@kedashbox} \newsavebox{\l@yersavebox} \newlength{\l@yerwidth} \newlength{\l@yerboxwidth} \newlength{\l@yertotalheight} \newlength{\l@yerlineheight} \newlength{\l@yervoffset} \newcommand{\m@kelayer}[1]{% \setlength{\l@yertotalheight}% {\dp\l@yersavebox+\ht\l@yersavebox+\layersize-#1\layersize}% \setlength{\l@yerlineheight}% {\ht\l@yersavebox-#1\layersize-\fboxrule}% \setlength{\l@yervoffset}% {-\layersize-\dp\l@yersavebox}% \setlength{\l@yerboxwidth}% {\wd\l@yersavebox+\layersize-#1\layersize}% \parbox{\l@yerwidth}{% \offinterlineskip% \parskip=0pt% \usebox{\l@yersavebox}% \rule[\l@yerlineheight]{\layersize}{\fboxrule}% \kern-\fboxrule% \rule[\l@yervoffset]{\fboxrule}{\l@yertotalheight}% \kern-\wd\l@yersavebox\kern-\layersize\kern#1\layersize \rule[\l@yervoffset]{\fboxrule}{\layersize}% \kern-\fboxrule \rule[\l@yervoffset]{\l@yerboxwidth}{\fboxrule}% }} \newcommand{\l@yer}[2]{% \sbox{\l@yersavebox}{#2}% \setlength{\l@yerwidth}{\wd\l@yersavebox+\layersize}% \m@kelayer{#1}} \newcommand{\m@kedashlayer}[1]{% \setlength{\l@yertotalheight}% {\dp\l@yersavebox+\ht\l@yersavebox+\layersize-#1\layersize}% \setlength{\l@yerlineheight}{\ht\l@yersavebox-#1\layersize-\fboxrule}% \setlength{\l@yervoffset}{-\layersize-\dp\l@yersavebox}% \setlength{\l@yerboxwidth}% {\wd\l@yersavebox+\layersize-#1\layersize}% \parbox{\l@yerwidth}{% \offinterlineskip% \parskip=0pt% \usebox{\l@yersavebox}% \raisebox{\l@yerlineheight}{\hd@shrule{\layersize}}% \kern-\fboxrule% \raisebox{\l@yervoffset}% {\parbox[b]{\fboxrule}{\vd@shrule{\l@yertotalheight}}}% \kern-\wd\l@yersavebox\kern-\layersize\kern#1\layersize \raisebox{\l@yervoffset}% {\parbox[b]{\fboxrule}{\vd@shrule{\layersize}}}% \kern-\fboxrule \raisebox{\l@yervoffset}% {\hd@shrule{\l@yerboxwidth}}% }} \newcommand{\dl@yer}[2] {\sbox{\l@yersavebox}{#2}% \setlength{\l@yerwidth}{\wd\l@yersavebox+\layersize}% \m@kedashlayer{#1}} \newcounter{l@yercount} \newcommand{\l@yers}[3] {\setcounter{l@yercount}{1}% \sbox{\l@yersavebox}{#2}% \whiledo{\not\(\value{l@yercount} > #1\)}% {\sbox{\l@yersavebox}% {#3{\value{l@yercount}}{\usebox{\l@yersavebox}}}% \stepcounter{l@yercount}}% \usebox{\l@yersavebox}% } \newcommand{\lbox}[2][2]{% \l@yers{#1}{#2}{\l@yer}} \newcommand{\dlbox}[2][2]{% \l@yers{#1}{#2}{\dl@yer}} \endinput %% %% End of file `dashbox.sty'. I was not sure which one is more elegant/easy, any solution are all welcome!
- How to format an enumerate list in LaTeX to match a specific visual style (with example image)?by Денис Мишкин on April 18, 2026 at 2:05 am
I’m struggling with formatting an enumerate list in LaTeX. I have an example image (attached below) showing the desired style — specifically, the left variant with the red frame. I need to achieve the following: The text in the list items should start exactly from the left margin (no «hanging indent»). The numbering (1., 2., etc.) should be aligned with the left edge, with minimal space between the number and the start of the text. When the text wraps to the second line, it should align directly under the beginning of the first line (not indented). The entire block (including the red frame in the example) should look clean and professional, similar to the left variant in the image. What I’ve tried so far: Used leftmargin=* in the enumerate environment — this helps, but there’s still a small gap between the number and the text. Tried adjusting labelindent, itemindent, and labelsep, but can’t get the perfect alignment. Looked into enumitem package options, but haven’t found the right combination. Current code snippet: \begin{enumerate}[beginpenalty=10000] \item First item with long text that wraps to the next line. \item Second item, also with lengthy description. \end{enumerate} The issue: while this reduces the indentation, it doesn’t fully match the style in the image. The wrapped lines still have a slight indent, and the overall look isn’t as clean as the example. Attached image: [insert image link/attachment here] — the left variant with the red frame is the target style. Questions: What additional parameters do I need to adjust to achieve this exact style? Should I use tcolorbox or another package to create the frame (as in the example)? If so, how to combine it with the enumerate list? Is there a «golden combination» of enumitem settings that guarantees this clean, flush-left alignment? How to ensure that wrapped lines align perfectly with the start of the first line? Any working examples or templates would be hugely appreciated! Thanks in advance! 😊
- Preference between two ways to use babel with snippets of foreign languages?by murray on April 18, 2026 at 1:20 am
A book-length document to be processed with lualatex has main language English, with only occasional words or phrases from Russian, French, German, or Polish. Of the various ways to invoke babel,which is to be preferred: the "new way" used in the litle example below, or, instead, the "old way" given in the commented-out lines? % !TEX program = lualatex % !BIB program = biber \NeedsTeXFormat{LaTeX2e}[2025-11-01] \RequirePackage{pdfmanagement} \documentclass{article} \usepackage[strict=true]{csquotes} % ``Old'' way ? %\usepackage[russian,french,ngerman,polish,english]{babel} %\babeltags{russian=russian,french=french,german=ngerman,polish=polish} % ``New'' way ? \usepackage[english]{babel} \newcommand\textrussian[1]{\foreignlanguage{russian}{#1}} \newcommand\textgerman[1]{\foreignlanguage{german}{#1}} \newcommand\textfrench[1]{\foreignlanguage{french}{#1}} \newcommand\textpolish[1]{\foreignlanguage{polish}{#1}} \usepackage{fontspec} \usepackage{lua-unicode-math} \UseInstance{lua-unicode-math-style}{ISO80000-2}% Italic upercase Greek \setmathfont{STIX Two Math}[Scale=MatchUppercase,math-style=ISO] \ExpandArgs{c}\def{ver@unicode-math.sty}{} \babelfont{rm}[Scale=1.0]{TeXGyreTermesX} \babelfont[russian]{rm}{tempora} \usepackage[backend=biber]{biblatex} \begin{document} Cyrillic surnames \textrussian{Александров}, \textrussian{Тихонов}, and \textrussian{Урысoн} are rendered using the German versions Alexandroff, Tychonoff, and Urysohn. In $F_{\sigma}$, the $F$ is from the French \textfrench{\emph{ferm\'{e}}}, meaning ``closed'' The alternative designation `$T_{2}$' for a Hausdorff space comes from the German \emph{\textgerman{Trennungsaxiom}} meaning ``separation axiom.'' The Borsuk--Ulam theorem is named after Karol Borsuk and \textpolish{Stanisław Ulam}. \end{document}
- Documentation for tex primitives? [duplicate]by abgup on April 17, 2026 at 10:07 pm
I'm trying to find the documentation for some commands I am trying to use. Right now I am trying to find documentation for tex primitives, such as /hrule. However, there doesn't seem to any place of docs? https://www.overleaf.com/learn/latex/TeX_primitives_listed_by_CJK_TeX_engine#Primitives_starting_with_%22G%E2%80%94I%22 The overleaf link simply lists the primitives. And texdoc.org doesn't give anything when you lookup primitives, rule, hrule, horizontal line, etc.
- xelatex: internal error; cannot read font namesby N. Hunt on April 17, 2026 at 9:16 pm
After a brand new installation of texlive onto a Solaris 11.4 machine, I tried to run xelatex on some files which I have been developing on an Oracle Linux machine, where tex etc. works, I get the error in the Subject line. The installation was more or less a full scheme, minus various languages I don't use. The document is tables of verb paradigms for Ancient Greek. Example: \documentclass[a4paper,14pt]{extarticle} \usepackage[a4paper,top=0.5in,left=0.05in,bottom=1in,right=0.05in,landscape]{geometry} \usepackage{fontspec} \usepackage{polyglossia} \setmainfont[Ligatures=TeX]{Gentium} \usepackage[Latin,Greek]{ucharclasses} \usepackage{multicol,lipsum} \usepackage{enumitem} \usepackage{xcolor} \usepackage{colortbl} \usepackage{booktabs} \usepackage{titlesec} \usepackage{multirow} \usepackage{graphicx} \usepackage{makecell} \definecolor{Grey1}{RGB}{238,238,238} \definecolor{Grey2}{RGB}{187,187,187} \definecolor{Blue}{RGB}{170,255,255} \definecolor{Green}{RGB}{199,234,187} \definecolor{Brown}{RGB}{217,196,176} \setromanfont{Gentium-Regular} \setmainlanguage{greek} \setotherlanguage{english} \setlist[description]{ font=\bfseries, topsep=8pt, itemsep=0pt, partopsep=4pt, parsep=0pt, leftmargin=0.35cm, before=\raggedright } \setcounter{secnumdepth}{0} \titleformat{\section}[block]{\color{blue}\Large\bfseries\filcenter}{}{1em}{} \titleformat{\subsection}[block]{\bfseries\filcenter}{}{1em}{} \titlespacing*{\section}{0pt}{5pt}{0pt} \titlespacing*{\subsection}{0pt}{5pt}{5pt} \begin{document} \begin{table}[!ht] \centering \begin{tabular}{c c | l l l l l l l l} \arrayrulecolor{red}\toprule \multicolumn{10}{l}{Present:λύω;λύομαι} \\ \midrule & & \multicolumn{3}{c}{\cellcolor{Grey2}{singlular}} & \multicolumn{2}{c}{\cellcolor{Grey2}{dual}} & \multicolumn{3}{c}{\cellcolor{Grey2}{plural}} \\ \midrule & & \cellcolor{Green}{first} & \cellcolor{Green}{second} & \cellcolor{Green}{third} & \cellcolor{Green}{second} & \cellcolor{Green}{third} & \cellcolor{Green}{first} & \cellcolor{Green}{second} & \cellcolor{Green}{third} \\ \midrule \cellcolor{Blue} & \cellcolor{Blue}indicative & λύω & λύεις & λύει & λύετον & λύετον & λύομεν & λύετε & λύουσι(ν) \\ \cellcolor{Blue} & \cellcolor{Blue}subjunctive & λύω & λύῃς & λύῃ & λύητον & λύητον & λύωμεν & λύητε & λύωσι(ν) \\ \cellcolor{Blue} & \cellcolor{Blue}optative & λύοιμι & λύοις & λύοι & λύοιτον & λυοίτην & λύοιμεν & λύοιτε & λύοιεν \\ \multirow{-4}{*}{\cellcolor{Blue}active} & \cellcolor{Blue}imperative & - & λῦε & λυέτω & λύετον & λυέτων & - & λύετε & λυόντων \\ \cellcolor{Blue} & \cellcolor{Blue}indicative & λύομαι & \makecell[l]{λύῃ \\ λύει} & λύεται & λύεσθον & λύεσθον & λυόμεθα & λύεσθε & λύονται \\ \cellcolor{Blue} & \cellcolor{Blue}subjunctive & λύωμαι & λύῃ & λύηται & λύησθον & λύησθον & λυώμεθα & λύησθε & λύωνται \\ \cellcolor{Blue} & \cellcolor{Blue}optative & λυοίμην & λύοιο & λύοιτο & λύοισθον & λυοίσθην & λυοίμεθα & λύοισθε & λύοιντο \\ \multirow{-4}{*}{\cellcolor{Blue}\makecell{middle/ \\ passive}} & \cellcolor{Blue}imperative & - & λύου & λυέσθω & λύεσθον & λυέσθων & - & λύεσθε & λυέσθων \\ \midrule \cellcolor{Blue} & \cellcolor{Blue} & \multicolumn{4}{c}{active} & \multicolumn{4}{c}{middle/passive} \\ \cellcolor{Blue}infinitive & \cellcolor{Blue} & \multicolumn{4}{c}{λύειν} & \multicolumn{4}{c}{λύεσθαι} \\ \cellcolor{Blue} & \cellcolor{Blue}m. & \multicolumn{4}{c}{λύων} & \multicolumn{4}{c}{λυόμενος} \\ \cellcolor{Blue} & \cellcolor{Blue}f. & \multicolumn{4}{c}{λύουσα} & \multicolumn{4}{c}{λυομένη} \\ \multirow{-3}{*}{\cellcolor{Blue}participle} & \cellcolor{Blue}n. & \multicolumn{4}{c}{λῦον} & \multicolumn{4}{c}{λυόμενον} \\ \bottomrule \end{tabular} \end{table} \end{document} xelatex xxxx.xtx This is XeTeX, Version 3.141592653-2.6-0.999998 (TeX Live 2026) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (./xxxx.xtx LaTeX2e <2025-11-01> L3 programming layer <2026-03-20> (/opt/texlive/texmf-dist/tex/latex/extsizes/extarticle.cls Document Class: extarticle 1996/10/08 v1.0 Non Standard LaTeX document class (/opt/texlive/texmf-dist/tex/latex/extsizes/size14.clointernal error; cannot read font names *** Error code 3
- halign=center in tcolorbox causes excessive spacing in math mode [duplicate]by Naoum Hamid on April 17, 2026 at 9:11 pm
I'm using tcolorbox to create a centered result box containing mathematical expressions. When I add the halign=center option, the math characters become abnormally spaced. Minimal example: \documentclass{article} \usepackage{tcolorbox} \usepackage{amssymb} \newtcolorbox{resultbox}{ colback=green!20, colframe=green!50!black, boxrule=0.7pt, valign=center, halign=center, arc=3pt, boxsep=0pt, left=5pt, right=5pt, top=0pt, bottom=0pt, fontupper=\boldmath, } \begin{document} \begin{resultbox} $D_f = \mathbb{R} \setminus \{1\} = \,]-\infty\,;\,1[\;\cup\;]1\,;\,+\infty[$ \end{resultbox} \end{document} Observed behavior: the characters inside the math formula are spaced excessively. Expected behavior: normal spacing, as without halign=center. Is this a known issue? Is there a way to center the content without triggering this problem?
- Centering vertically oriented text in latexby Zilore Mumba on April 17, 2026 at 8:37 pm
In my Gantt chart generated in Latex, I have the first row comprising of text which is both horizontally and vertically oriented. I would like to centre both sets of text. I have tried some manual manipulations like \bigskip, \vspace, I am not just getting it. The code below works, except for the centering. I would like to center vertically the text in row 1, "Time Frames", Weekx Schedule & Other Activities as well as the vertically oriented text. I see from other posts that i may have to switch to , e.g. tabulary or nicematrix. I will appreciate if there is a quick fix with longtable. \documentclass[10pt]{report} \let\chaptername\relax \usepackage{enumerate,mdwlist} \usepackage[usegeometry]{typearea}% load before geometry \usepackage[left=15mm,right=15mm,top=15mm,bottom=13mm,footskip=8mm,headsep=8mm,bindingoffset=8mm]{geometry} \advance \footskip by \ht\strutbox \newcommand*{\useportrait}{% \clearpage \KOMAoptions{paper=portrait,DIV=current} %switch to portrait \newgeometry{ % geometry settings for portrait left=1in, right=0.5in, top=0.6in, bottom=0.61in,headheight=20pt,includehead }% \fancyhfoffset{0pt}% <- recalculate head and foot width for fancyhdr } \newcommand*{\uselandscape}{% \clearpage \KOMAoptions{paper=landscape,DIV=current}%switch to landscape \newgeometry{% geometry settings for landscap left=1in, right=0.5in, top=0.6in, bottom=0.61in,headheight=20pt,includehead }% \fancyhfoffset{0pt}% recalculate head and foot width for fancyhdr } \usepackage{fancyhdr} \pagestyle{plain} \fancyhf{} % clear all header and footer fields \fancyhead[L]{\textbf{\normalsize UNDP-SSD-00656 – Install WRF \& Applications in SSMD}} \fancyhead[R]{\textbf{\normalsize Technical Proposal}} \fancyfoot{} \fancyfoot[RO,LE]{\textbf{\thepage}} \fancyfoot[CO,CE]{\textbf{\normalsize{\thechapter \leftmark}}} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} \makeatletter \let\ps@plain\ps@fancy \makeatother \renewcommand\chaptermark[1]{\markboth{#1}{}} \usepackage{cellspace} \usepackage{rotating} \usepackage{makecell} \usepackage{longtable, array} \usepackage{array,tabularx} % also loads 'array' package enter code here \usepackage{booktabs} \newcolumntype{C}{>{\centering\arraybackslash}X} % centered version of 'X' columns \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} \begin{document} \KOMAoptions{paper=landscape,DIV=last} \newgeometry{hmargin=2.1cm,top=18mm,bottom=15mm,height=150mm,includehead} \fancyheadoffset{4pt}% recalculate headwidth for fancyhdr \setlength\footskip{20pt} \begin{table}[h!] { \setlength\arrayrulewidth{1pt} \newcommand{\thinvrule}{{\vrule width 0.5pt}} \renewcommand{\arraystretch}{1.4}% for the vertical padding \renewcommand{\defaultaddspace}{0.5cm} \setlength{\tabcolsep}{2pt} % for the horizontal padding \begin{longtable}[htpb]{|p{0.35cm} p{11.5cm} | *4{*3{p{.75cm}!\thinvrule } p{.75cm}|} p{.75cm}|} \toprule \rule{0pt}{24pt} & \multicolumn{1}{r|}{\textbf{Time Frames}} & \multicolumn{6}{c|}{\parbox{.15\linewidth}{\normalsize 1.\quad Week1 Schedule \& Other Activities}} & {\vspace{-1cm}\centering\rotatebox{90}{\parbox{3\linewidth}{\scriptsize Week1 Activities\\ Report 27/11/26}}} & \multicolumn{6}{c|}{\parbox{.15\linewidth}{\normalsize 1.\quad Week2 Schedule \& Other Activities}} & {\vspace{-1cm}\centering\rotatebox{90}{\parbox{3\linewidth}{\scriptsize Week2 Activities\\ Report 24/12/26}}}\\ \hline & \hfill\textbf{Day of the Week} & 06 & 07 & 08 & 09 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19\\ \hline & \hfill\textbf{Day No.} & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14\\ \hline \multicolumn{16}{|l}{\textbf{\normalsize Week1 Schedule}}\\ \hline & i) & & & & & & & & & & & & & &\\ \hline & ii) & & & & & & & & & & & & & &\\ \hline \multicolumn{16}{|l}{\textbf{\normalsize Week2 Schedule}}\\ \hline & i) & & & & & & & & & & & & & &\\ \hline & ii) & & & & & & & & & & & & & &\\ \bottomrule \end{longtable} } \end{table} \end{document}
- Music bars shifted from the staffsby Phantom on April 17, 2026 at 8:18 pm
I'm trying to write music with a guitar tablature. Here is the .tex file \documentclass{report} \usepackage{musixtex} \usepackage{musixguit} \begin{document} \begin{music} \instrumentnumber{2} \nobarnumbers \setclef20 \setlines16\setclefsymbol1\tabclef\setsign10 \raiseguitar{20} \interinstrument=2\internote \startpiece \notes \sk \tab60 \tab62 \tab50 \tab53 \tab40 \tab42 \tab44 \tab32 \tab21 \tab23 % \tab10 \tab12 \tab10 \tab23 \tab21 \tab32 \tab44 \tab42 \tab40 \tab53 % \tab50 \tab62 \tab60 & % \guitar {Ré~M}{}oooxxo\gdot13\gdot23\gdot32\gdot42\gdot34\gdot51\gdot53\gdot63 \qu{L} \qu{^M} \qu{a} \qu{c} \qu{d} \qu{e} \qu{^f} \qu{h} \qu{j} \qu{k} % \qu{l} \qu{^m} \qu{l} \qu{k} \qu{j} \qu{h} \qu{^f} \qu{e} \qu{d} \qu{c} % \qu{a} \qu{^M} \qu{L} % \en % \bar % \notes \sk % \tab65 \tab68 \tab55 \tab57 \tab44 \tab47 \tab35 \tab37 \tab25 \tab27 % \tab15 \tab18 \tab15 \tab27 \tab25 \tab37 \tab35 \tab47 \tab45 \tab57 % \tab55 \tab68 \tab65 & % \guitar {La~m}{4}------\gdot61\gdot51\gdot40\gdot31\gdot21\gdot11% \gdot64\gdot53\gdot43\gdot33\gdot23\gdot14 % \qu{a} \qu{c} \qu{d} \qu{e} \qu{^f} \qu{h} \qu{j} \qu{k} \qu{l} \qu{^m} % \qu{o} \qu{q} \qu{o} \qu{^n} \qu{l} \qu{k} \qu{j} \qu{h} \qu{^f} \qu{e} % \qu{d} \qu{c} \qu{a} % \en \Endpiece \end{music} \end{document} I compiled it with: xelatex test.tex musixflx test.mx1 xelatex test.tex Here is the result. As we can see, the finals bars are shifted. How can I make them right at the end of the staffs? Also, I wrote a MWE for this question, but it comes from a large document, in which the result is different (see below). As it's a large document there are probably some side effects with other things, but still, the behavior is weird! EDIT I removed all "unwanted" spaces. The finals bars are now at the right place, but the notes are not aligned between the staff and the tablature. I tried with znotes, Notes, ltab, rtab, but I'm not able to make a proper alignment. I added \mulooseness=1 otherwise the two bars were smashed on one line. Here is the new code: \documentclass{report} \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} \usepackage{musixtex} \usepackage{musixguit} \begin{document} \noindent \begin{music} \instrumentnumber{2} \nobarnumbers \setclef20 % Définit la tablature \setlines16\setclefsymbol1\tabclef\setsign10 % Ajoute le "schema" de guitare \raiseguitar{20} \interinstrument=2\internote \startpiece \notes \sk \tab60\tab62\tab50\tab53\tab40\tab42\tab44\tab32\tab21\tab23\tab10\tab12\tab10\tab23\tab21\tab32\tab44\tab42\tab40\tab53\tab50\tab62\tab60& \guitar{Ré~M}{}oooxxo\gdot13\gdot23\gdot32\gdot42\gdot34\gdot51\gdot53\gdot63 \qu{L^Macde^fhjkl^mlkjh^fedca^ML} \en \bar \notes \sk \tab65\tab68\tab55\tab57\tab44\tab47\tab35\tab37\tab25\tab27\tab15\tab18\tab15\tab27\tab25\tab37\tab35\tab47\tab45\tab57\tab55\tab68\tab65& \guitar {La~m}{4}------\gdot61\gdot51\gdot40\gdot31\gdot21\gdot11\gdot64\gdot53\gdot43\gdot33\gdot23\gdot14 \qu{acde^fhjkl^moqo^nlkjh^fedca}% \en \mulooseness=1 \Endpiece \end{music} \end{document} Here is the result
- LuaLaTeX problems with Greek, Devanagari, and a table of contentsby Jason Wright on April 17, 2026 at 8:08 pm
I have a very long book written primarily in English that includes snippets of text (just a few words here and there) in many languages. For accessibility reasons I need to switch compilers to LuaLaTeX and it's breaking things (understandably). I'm struggling to understand the best way to render these words. I've gotten almost everything to work very nicely by using babel and fontspec and careful selection of fonts for the various languages. My only final problem is I'm having a strange interaction among the table of contents, devanagari package, and Greek letters. Removing any one of those seems to make the warning go away. Here's my MWE: \documentclass{book} \usepackage{fontspec} \usepackage{devanagari} \usepackage[greek,english]{babel} \newcommand{\greek}[1]{{\begin{otherlanguage}{greek}{\fontspec{CMU Serif}#1}\end{otherlanguage}}} \begin{document} \tableofcontents {\dn : mEZ p\394w\? \8{h}\1} %<- This line is just to illustrate the devanagari package and does not cause an error \greek{α} \end{document} This code generates for me the warnings: Some font shapes were not available, defaults substituted. Font shape `TU/cmr/m/n' undefined My guess is that this can be resolved with appropriate calls to something about fontspec but any help is appreciated. Update: I've found another conflict, which is that my table of contents headers switch from bold to ordinary typeface in every chapter after I use Greek characters! I'm working on an MWE but clearly there are multiple bugs at work here.
- Is there a way to automatically create multiple pages inserting a new name in each one?by Fisherman's Friend on April 17, 2026 at 4:54 pm
I have been asked to create badges for a conference. In each corner of the badge will be an image with some logos. I have a long list of names of attendees and their institutions in Excel. I'd like to create a LaTeX document with a unique page for each attendee that I can then print out into badges. Below is an example layout of such a badge. \documentclass{article} \usepackage{graphicx} \usepackage{geometry} \usepackage{anyfontsize} \begin{document} \pagenumbering{gobble} \noindent\includegraphics[width=3cm]{example-image-a}\hspace{9cm}\noindent\includegraphics[width=3cm]{example-image-b} \vspace{6cm} \centering \fontsize{50}{2}\selectfont{\textbf{Example Name}} \vspace{2cm} \fontsize{40}{2}\selectfont{Example University at Example Country} \end{document} I'm hoping there is some way to automate this process. For instance, create an array of names {Name1, Name2, Name3} and ask LaTeX to create a new page for each name in the array along with the instution.
- How to get a table with one fixed cell, and an adaptive one?by Alessandro Bertulli on April 17, 2026 at 10:47 am
I'm trying to get something like this (taken from Microsoft Word): The left cell is going to be "fixed", meaning it shouldn't grow with the text filling the right one; viceversa, the right cell should adapt to the text put in it, but: being at least as high as the left cell with the background for the entire cell the table should take horizontally all of the \textwidth optionally, the left cell should have a minimum height For now I kinda managed to get this, with LuaLaTeX (1): \documentclass{report} \usepackage{tabularx} \usepackage{multirow} \usepackage[table]{xcolor} \usepackage{lipsum} \begin{document} \noindent\begin{tabularx}{\textwidth}[h]{p{6cm} >{\columncolor{gray}}X} {\cellcolor{red}\color{white}\textbf{Title of boxed section:}} & \multirow[t]{2}{=}{\lipsum[1]} \\ & \end{tabularx} \lipsum[1] \end{document} but as you see it overlaps both in the right cell, and with the rest of the text: We can use LuaLaTeX and LaTeX3. Do you have any advise? Thanks! (1) EDIT: added \usepackage{...} to provide complete MWE
- Draw shaded bands spanning over some strandsby Mohammed Sabak on April 17, 2026 at 10:27 am
I'm currently working on a math paper about some concepts in virtual knot theory. It is a very "visual" field of mathematics and we are often challenged to draw some original figures using Tikz code. The following is a hand made version of the figure I want to draw using Tikz code: I was able to produce the code for the left hand side figure (the crossings with the shaded bands spanning over its strands). But I could not produce the right hand side figure. Here is a minimal working example that could be given here. 🙂 \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,arrows.meta} \tikzset{>={Stealth[length=2mm]}} \begin{document} \begin{tikzpicture} \coordinate (P) at (-0.5,0); \draw[gray!55, line width=2mm, line cap=round] ($(P)+(-1,1)$) .. controls ($(P)+(0.2,-0.1)$) and ($(P)+(0.2,0.1)$) .. ($(P)+(-1,-1)$); \coordinate (Q) at (0.5,0); \draw[gray!55, line width=2mm, line cap=round] ($(Q)+(1,1)$) .. controls ($(P)+(0.8,-0.1)$) and ($(P)+(0.8,0.1)$) .. ($(Q)+(1,-1)$); \draw[thick, line cap=round,->] (-1.4,-1.4) -- (1.4,1.4); \draw[thick, line cap=round,->] (-1.4,1.4) -- (-0.2,0.2) ( 0.2,-0.2) -- ( 1.4,-1.4); \end{tikzpicture} \end{document}
- Bug with tikz backgrounds-libraryby DraUX on April 17, 2026 at 9:22 am
I recently noticed a bug, where the TikZ backgrounds library ignores any other options applied within the same scope definition. As you can see in the MWE below, I have a scope on the background layer with the additional options blue and ultra thick, which are ignored. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \draw[red, ultra thick] (0,0) -- (2,0); \begin{scope}[on background layer,blue,ultra thick] \draw (1,-1) -- (1,1); \end{scope} \end{tikzpicture} \end{document} Using nested scopes or defining the options directly in the path definition gives the desired result. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \draw[red, ultra thick] (0,0) -- (2,0); \begin{scope}[on background layer] \begin{scope}[blue,ultra thick] \draw (1,-1) -- (1,1); \end{scope} \end{scope} \end{tikzpicture} \end{document} Is this a bug? It isn't mentioned in the manual. I couldn't find a git repo to report an issue, so I hope this is the right place to ask.
- How to make citetitle use the full title by default and not the short title with biblatexby bmrs on April 17, 2026 at 8:29 am
I am using the "shorttitle" field with "biblatex" to handle the removal of articles (like "the") in French in some cases. The problem is that, as a result, the "citetitle" function uses the "shorttitle" attribute by default instead of the full title. How can I get to use full title by default? Here is the MWE: \documentclass{scrartcl} \usepackage{polyglossia} \setdefaultlanguage{french} \usepackage[ backend=biber, citestyle=verbose-trad2, ]{biblatex} \usepackage{filecontents} \DeclareCiteCommand\citeshorttitle {\usebibmacro{prenote}} {\mkbibemph{\printfield{shorttitle}}} {\multicitedelim} {\usebibmacro{postnote}} \begin{filecontents}{\jobname.bib} @book{Constitution, title = {La Constitution}, shorttitle = {Constitution}} \end{filecontents} \addbibresource{\jobname.bib} \nocite{*} \begin{document} The short title is \citeshorttitle{Constitution} but \texttt{citetitle} also becomes \citetitle{Constitution} instead of \emph{La Constitution}. \end{document}
- Making a Coin catalogue using LaTeXby Happy_Archaeologist on April 16, 2026 at 3:25 pm
I am struggling to make a professional looking coin catalogue on LaTeX, but don't want to go back to using word. Need to figure out a way of formatting in a way that looks professional but is semi easy to use.
- How to create a TikZ node whose top matches one node’s north and bottom matches another node’s south?by Lecthor on April 16, 2026 at 3:18 pm
I have two rectangular TikZ nodes placed one below the other: B1 is above B2. I would like to create a third rectangular node B3, shifted to the right in the x-direction, such that: the top of B3 is aligned with B1.north the bottom of B3 is aligned with B2.south I am not sure what is the best TikZ way to do this cleanly. Here is a minimal example of the situation: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikzstyle{block} = [draw, fill=white, rectangle, inner xsep=0pt, align=center, font=\small]% \begin{tikzpicture} \node [block, text width=3em] (B1) {Block 1}; \node [block, anchor=north, text width=3em] (B2) at ([yshift=-5em]B1.south) {Block 2}; \node [block, anchor=west] (B3) at ([xshift=5em]$(B1.east)!0.5!(B2.east)$) {Block 3}; \end{tikzpicture} \end{document} I tried using minimum height with coordinate differences, but I could not make it work properly. What is the recommended approach?
- How to redefine binary operators with unicode-math?by Mankka on April 16, 2026 at 1:44 pm
I want to use the minus symbol "-" for set differences instead of the "∖" \setminus. My setup is the following: \RequirePackage{pdfmanagement} \SetKeys[document/metadata]{lang=en-GB} \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{Latin Modern Roman} \usepackage{mathtools} \usepackage{lualatex-math} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}] {unicode-math} \setmathfont{Latin Modern Math} %\let\oldsetminus\setminus \newcommand*\oldsetminus\setminus \begin{document} Set difference: $A \setminus B = A - B = A \oldsetminus B$. \end{document} If I don't use unicode-math, the let-command works. With unicode-math I have to use the newcommand*. I tried (among other things) \renewcommand*\setminus{-} but it does nothing. How do I retain the old setminus but also define \setminus as -?
- Color symbol for lucide-icons packageby Sebastiano on April 16, 2026 at 11:28 am
What is the reason of why I can haven't the colors? \documentclass{article} \usepackage{xcolor} \usepackage{lucide-icons} \begin{document} \lucideicon{alarm-clock-check} \textcolor{red}{\lucideicon{alarm-clock-check}} \end{document}
- Bezier curves with controls?by Raffaele Santoro on April 16, 2026 at 8:45 am
How to make rounded corner and curve (..controls?) for this path (or similar)? \documentclass[margin={1.5cm 1,5cm 1.5cm 1.5cm}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[cyan] (0,0)--(2,0)--(5,2)--(7,3)--(6,4)--(4,7)--(2,7)--(.5,5)--(0,2)--cycle; \end{tikzpicture} \end{document}
- Extra CJK spacing in `\Arg` with `luatexja-fontspec` in `l3doc` setup?by Explorer on April 16, 2026 at 6:26 am
I have the following code: \documentclass{l3doc} \usepackage[match]{luatexja-fontspec} % lualatex \setmonojfont{FandolKai-Regular} % \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt} \begin{document} \begin{function}{\mycmd} \begin{syntax} \tn{mycmd}\oarg{option}\Arg{汉字}\Arg{说明} \end{syntax} \end{function} In the main text, I still want the \textbf{auto spacing}: 中文text中文 In the main text, I still want the \textbf{auto spacing}: 中文 text 中文 \end{document} If I uncommented the \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt}, that appeared to be: If I only want the \ltjsetparameter{xkanjiskip=0pt plus 0pt minus 0pt} work for all the l3doc commands, to show \mycmd{<汉字>}{<说明>} without any extra spacing, but in the documentation, it add the spacing automatically, what is the best practice here to interact with luatexja and the l3doc? I have no good idea to hook all the l3doc commands(and that is not elegant, too).
- What ia a comment starting with an & in the preamble?by Alexander Gelbukh on April 15, 2026 at 10:34 pm
I am debugging somebody else's .tex file. The first line is: %&xx I also see files xx.fmt and xx.tex in the same folder. What does this line mean ? Is it like \input ? But apparently faster (I guess it includes a pre-compiled represemtation of the .tex file),is it ? The file xx.tex loads a number of packages, which makes it slow to compile. I guess the intention might have been to speed up the compilation. I am trying to compile the file that I am debugging with pdflatex (MikTex on Windows-10) . Strangely, pdflatex does not even produce a .log file -- Iguess it fails before that?
- Reformatting backrefby Pietro Paparella on April 15, 2026 at 8:21 pm
As a follow-up to this question here, I'd like to redefine \backrefxxx so that multiple back-references are formatted as they are on Wikipedia: I tried the following command: \renewcommand{\backrefxxx}[3]{\textasciicircum \textsuperscript{\hyperlink{page.#1}{#1}}} Minimum working example: \documentclass{article} \usepackage[pagebackref]{hyperref} \renewcommand{\backrefxxx}[3]{\textasciicircum \textsuperscript{\hyperlink{page.#1}{#1}}} \begin{document} \cite{fml2026} \newpage \cite{fml2026} \begin{thebibliography}{1} \bibitem{fml2026} First M.~Last. \newblock Title. \newblock {\em Journal}, 2026. \end{thebibliography} \end{document} but this produces the format: ${\textasciicircum}^{1,2}$ Question: Is it possible to achieve the Wikipedia format where the back-reference goes back to exact location and not just the page?
- Problem with tkz-grapheur packageby Sebastiano on April 14, 2026 at 8:10 pm
It is possible that either the package does not behave as I expect, or I am misunderstanding how to use it correctly. According to the manual, the inequality 3x + 2y - 6 >= 0 should represent the half-plane above the line 3x + 2y - 6 = 0, i.e., the region containing points such as (0,3). However, in my code the line is drawn correctly (it passes through (0,3) and (2,0)), but the shaded region does not match the expected half-plane: it appears on the opposite side of the line. What am I doing wrong when using \LinearInequality? Is it a sign convention issue, an internal convention of the package, or do I need to rewrite the expression in a different form to obtain the correct shaded region? \documentclass{article} \usepackage{tkz-grapheur} \begin{document} \begin{GraphTikz}[ x=1cm, y=1cm, Xmin=-3,Xmax=3, Ymin=-3,Ymax=3 ] \DrawAxisGrids[Font=\small]{auto}{auto} \LinearInequality[color=pink,hatch={north east lines}]{3x+2y-6}{>=0} \end{GraphTikz} \end{document}