• Equation with caption
    by palloc on February 8, 2026 at 12:01 pm

    I would like to add caption to my equation, how could I do that: \documentclass{article} \begin{document} \begin{equation} E = mc^2 \label{eq:emc} \end{equation} \ref{eq:emc} \end{document}

  • I would like to number subcases as well with 1a, 1b
    by palloc on February 8, 2026 at 11:12 am

    I have the following code, I would like to number the subcases with 1a, 1b, so not just one big case with (1). \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x) = \begin{cases} x^2& x \ge 0,\\ -x & x < 0. \end{cases} \end{equation} \end{document}

  • Configure `keytheorems` so that it produces the same output as `ntheorem`
    by Denis Bitouzé on February 8, 2026 at 9:48 am

    For a class of mine, I'm in the process to switch from ntheorem to keytheorems but, for compatibility reason, I would like to make the output of “theorems” as identical as possible. Unfortunately, it is not the case, as shown in the following M( non realistic )CE: \RequirePackage{comment} \includecomment{kt}\excludecomment{nt} % \includecomment{nt}\excludecomment{kt} \documentclass{article} \usepackage[ textwidth=12.75cm, paperwidth=14cm, paperheight=2cm, showframe ]{geometry} \begin{kt} \usepackage{keytheorems} \newkeytheoremstyle{rmk-style}{ inherit-style=definition, notefont=\bfseries, headpunct={~--} } \newkeytheorem{rmk}[style=rmk-style,name=Remark] \end{kt} \begin{nt} \usepackage{ntheorem} \theoremstyle{plain} \theoremheaderfont{\normalfont\bfseries} \theorembodyfont{\normalfont} \theoremseparator{~--} \theoremsymbol{} \newtheorem{rmk}{Remark} \end{nt} \begin{document} \begin{rmk}[Euler's identity] One of the most beautiful mathematical equation: \[ e^{i\pi}+1=0 \] \end{rmk} \end{document} As it is (keytheorems in force), the output is the following: whereas, if the second line is commented and the third one is uncommented (ntheorem in force), the output is the following: How could I configure keytheorems in order it produces the same output as ntheorem?

  • Why do I keep getting "database doesn't exist" error when I try to read a csv with datatool \DTLread[name=gradesDB,format=csv]{data.csv}?
    by nt54 on February 8, 2026 at 5:33 am

    I'm trying to read a simple csv into a datatool database and then populate a table with this data. The persistent error is reported as "Package datatool error: Database 'gradesDB doesn't exist' in the TeXworks console output. I'm using the current TeXworks 2025 full/complete installation. The csv was encoded as uft-8. This csv file is named data.csv (NOTE: In the preview of this post this file appears in a single row format. It is actually written as a 4 row x 3 column form with the first three rows terminated by CRLF) Name,Surname,Grade Albert,Einstein,147 Marie,Curie,159 Thomas,Edison,179 I've consulted online AI and version 3.4.3 2025-12-04 of The Datatool Bundle: Databases and Data Manipulation from Dickimaw Books for documentation. This package is new to me and I have a feeling is there is a simple error I'm not catching. I greatly appreciate any help you might offer. Thanks in advance. \documentclass{article} \usepackage{datatool} \usepackage{booktabs} % Optional: provides better horizontal lines (\\toprule, \\midrule, \\bottomrule) \usepackage[utf8]{inputenc} \DTLloaddb{gradesDB}{data.csv} \begin{document} \section{Student Grades} % Load the CSV file into a database named 'gradesDB' %% Note the following command is now deprecated according to docs %% \DTLloaddb[autonum=false]{gradesDB}{data.csv} \DTLnewdb{gradesDB} \DTLread[name=gradesDB,format=csv]{data.csv} % Begin the table environment \begin{table}[h] \centering \caption{Grades of Students} \label{tab:grades} % Begin the tabular environment with column specifications \begin{tabular}{c c c } \toprule \textbf{Name} & \textbf{Surname} & \textbf{Grade} \\ \midrule % Iterate through each row in the 'gradesDB' database \DTLforeach*{gradesDB}{% \Name=Name,% \Surname=Surname,% \Grade=Grade% }{% % Format each row \Name & \Surname & \Grade \\ } \bottomrule \end{tabular} \end{table} \end{document} The log file: This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex 2026.2.7) 8 FEB 2026 00:19 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test_read.tex (./test_read.tex LaTeX2e <2025-11-01> L3 programming layer <2026-01-19> (c:/texlive/2025/texmf-dist/tex/latex/base/article.cls Document Class: article 2025/01/22 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2025/01/22 v1.4n Standard LaTeX file (size option) ) \c@part=\count275 \c@section=\count276 \c@subsection=\count277 \c@subsubsection=\count278 \c@paragraph=\count279 \c@subparagraph=\count280 \c@figure=\count281 \c@table=\count282 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen148 ) (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool.sty Package: datatool 2025/12/04 v3.4.3 (NLCT) (c:/texlive/2025/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2024/03/16 v1.1e Standard LaTeX ifthen package (DPC) ) (c:/texlive/2025/texmf-dist/tex/latex/xfor/xfor.sty Package: xfor 2009/02/05 v1.05 (NLCT) ) (c:/texlive/2025/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2025/10/02 v2.5m e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count283 ) (c:/texlive/2025/texmf-dist/tex/latex/tracklang/tracklang.sty Package: tracklang 2025/03/11 v1.6.6 (NLCT) Track Languages (c:/texlive/2025/texmf-dist/tex/generic/tracklang/tracklang.tex)) (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-base.sty Package: datatool-base 2025/12/04 v3.4.3 (NLCT) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsmath.sty Package: amsmath 2025/07/09 v2.17z AMS math features \@mathmargin=\skip51 For additional information on amsmath, use the `?' option. (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amstext.sty Package: amstext 2024/11/17 v2.01 AMS text (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks17 \ex@=\dimen149 )) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen150 ) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsopn.sty Package: amsopn 2022/04/08 v2.04 operator names ) \inf@bad=\count284 LaTeX Info: Redefining \frac on input line 233. \uproot@=\count285 \leftroot@=\count286 LaTeX Info: Redefining \overline on input line 398. LaTeX Info: Redefining \colon on input line 409. \classnum@=\count287 \DOTSCASE@=\count288 LaTeX Info: Redefining \ldots on input line 495. LaTeX Info: Redefining \dots on input line 498. LaTeX Info: Redefining \cdots on input line 619. \Mathstrutbox@=\box53 \strutbox@=\box54 LaTeX Info: Redefining \big on input line 721. LaTeX Info: Redefining \Big on input line 722. LaTeX Info: Redefining \bigg on input line 723. LaTeX Info: Redefining \Bigg on input line 724. \big@size=\dimen151 LaTeX Font Info: Redeclaring font encoding OML on input line 742. LaTeX Font Info: Redeclaring font encoding OMS on input line 743. \macc@depth=\count289 LaTeX Info: Redefining \bmod on input line 904. LaTeX Info: Redefining \pmod on input line 909. LaTeX Info: Redefining \smash on input line 939. LaTeX Info: Redefining \relbar on input line 969. LaTeX Info: Redefining \Relbar on input line 970. \c@MaxMatrixCols=\count290 \dotsspace@=\muskip17 \c@parentequation=\count291 \dspbrk@lvl=\count292 \tag@help=\toks18 \row@=\count293 \column@=\count294 \maxfields@=\count295 \andhelp@=\toks19 \eqnshift@=\dimen152 \alignsep@=\dimen153 \tagshift@=\dimen154 \tagwidth@=\dimen155 \totwidth@=\dimen156 \lineht@=\dimen157 \@envbody=\toks20 \multlinegap=\skip52 \multlinetaggap=\skip53 \mathdisplay@stack=\toks21 LaTeX Info: Redefining \[ on input line 2950. LaTeX Info: Redefining \] on input line 2951. ) \l__datatool_tmpa_int=\count296 \l__datatool_tmpb_int=\count297 \l__datatool_tmpc_int=\count298 \l__datatool_tmpd_int=\count299 \l__datatool_count_int=\count300 \l__datatool_tmp_datatype_int=\count301 \l__datatool_tmpa_dim=\dimen158 \l__datatool_tmpb_dim=\dimen159 (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-l3fp.def File: datatool-l3fp.def 2025/12/04 v3.4.3 (NLCT) ) \@dtl@toks=\toks22 \@dtl@tmpcount=\count302 \dtl@tmplength=\skip54 \l__datatool_measure_box=\box55 \dtl@sortresult=\count303 (c:/texlive/2025/texmf-dist/tex/latex/datatool/datatool-utf8.ldf File: datatool-utf8.ldf 2025/12/04 v3.4.3 (NLCT) ) \@dtl@datatype=\count304 \c_datatool_unknown_int=\count305 \l__datatool_year_int=\count306 \l__datatool_month_int=\count307 \l__datatool_day_int=\count308 \l__datatool_hour_int=\count309 \l__datatool_minute_int=\count310 \l__datatool_second_int=\count311 \l__datatool_tzhour_int=\count312 \l__datatool_tzminute_int=\count313 \l__datatool_julian_int=\count314 \l__datatool_local_julian_int=\count315 \l__datatool_prefix_int=\count316 \l__datatool_suffix_int=\count317 \@dtl@foreach@level=\count318 \dtl@codeA=\count319 \dtl@codeB=\count320 ) \l__datatool_max_cols_int=\count321 \l__datatool_col_idx_int=\count322 \l__datatool_row_idx_int=\count323 \l__datatool_item_type_int=\count324 \l__datatool_action_column_int=\count325 \l__datatool_action_column_ii_int=\count326 \l__datatool_action_row_int=\count327 \l__datatool_action_row_ii_int=\count328 \l__datatool_action_type_int=\count329 \l__datatool_action_datum_round_int=\count330 \dtlcolumnnum=\count331 \dtlrownum=\count332 \@dtl@before=\toks23 \@dtl@after=\toks24 \@dtl@colhead=\toks25 \dtlcurrentrow=\toks26 \dtlbeforerow=\toks27 \dtlafterrow=\toks28 \l__datatool_map_data_max_cols_int=\count333 \l__datatool_map_data_edit_column_int=\count334 \dtlforeachlevel=\count335 \c@DTLrow=\count336 \c@DTLrowi=\count337 \c@DTLrowii=\count338 \c@DTLrowiii=\count339 \dtl@rowi=\count340 \dtl@rowii=\count341 \dtl@rowiii=\count342 \g__filtered_row_i_int=\count343 \g__filtered_row_ii_int=\count344 \g__filtered_row_iii_int=\count345 \@dtl@curi=\toks29 \@dtl@previ=\toks30 \@dtl@nexti=\toks31 \@dtl@curii=\toks32 \@dtl@previi=\toks33 \@dtl@nextii=\toks34 \@dtl@curiii=\toks35 \@dtl@previii=\toks36 \@dtl@nextiii=\toks37 \l_datatool_display_per_row_int=\count346 \l_datatool_display_tab_rows_int=\count347 \@dtl@toksA=\toks38 \@dtl@toksB=\toks39 \@dtl@elements=\count348 \__datatool_sort_data_sortcol_int=\count349 \__datatool_sort_data_grpcol_int=\count350 \dtl@omitlines=\count351 \l__datatool_line_int=\count352 ) (c:/texlive/2025/texmf-dist/tex/latex/booktabs/booktabs.sty Package: booktabs 2020/01/12 v1.61803398 Publication quality tables \heavyrulewidth=\dimen160 \lightrulewidth=\dimen161 \cmidrulewidth=\dimen162 \belowrulesep=\dimen163 \belowbottomsep=\dimen164 \aboverulesep=\dimen165 \abovetopsep=\dimen166 \cmidrulesep=\dimen167 \cmidrulekern=\dimen168 \defaultaddspace=\dimen169 \@cmidla=\count353 \@cmidlb=\count354 \@aboverulesep=\dimen170 \@belowrulesep=\dimen171 \@thisruleclass=\count355 \@lastruleclass=\count356 \@thisrulewidth=\dimen172 ) (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def File: l3backend-pdftex.def 2025-10-09 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count357 ) (./test_read.aux) \openout1 = `test_read.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. \dtldb@grades=\toks40 \dtlkeys@grades=\toks41 \dtlrows@grades=\count358 \dtlcols@grades=\count359 ! Package datatool Error: Database `gradesDB' doesn't exist. See the datatool package documentation for explanation.

  • Passing key-value pairs to setuphead and doif... expansion of \structureuservariable
    by Gary on February 8, 2026 at 4:49 am

    I'm trying to pass values to the command declared in setuphead and evaluate them in the command. Following the example at https://wiki.contextgarden.net/Command/_startsection under the heading of "Settings (instance variant)", it appears that the key-value pairs are being passed to the command. However, I do not understand either how if/then/else works in ConTeXt and/or when commands are expanded to their values. In the example below, the MySection command works because the test is for whether or not a user variable of pw has any value or something like that. But the MySectionBroken command fails because the attempted test on the value of user-variable ct is always false and there is not pw for the scenario when ct is equal to character l. It appears that \structureuservariable{pw} is converted to its value in \starttabulate but \structureuservariable{ct} is not in the if test. I see the many, many doifelse... commands in the big book of ConTeXt commands but did not see anything on the wiki that describes how they function. Would please point me to where this is explained? Thank you. P.S. I should've explained that I'd like to pass a column type and, when it is paragraph, a column width. I need the section number to remain more left than the text when it wraps. And, even though I'd be glad to learn of other ways to accomplish this, I'd really like to understand how the conditionals work in ConTeXt. Thanks. \setuplayout[ height=4in, width=4in ] \define[2]\MySection{% \placetable[middle,none][]{}{ \doifelsesomething{\structureuservariable{pw}}{% \starttabulate[|l|p(\structureuservariable{pw})|][frame=on] }{% \starttabulate[|l|l|][frame=on] }% \NC #1 \NC #2 \NC \NR \stoptabulate} } \define[2]\MySectionBroken{% \placetable[middle,none][]{}{ \doifelsevalue{\structureuservariable{ct}}{l}{% \starttabulate[|l|l|][frame=on] }{% \starttabulate[|l|p(\structureuservariable{pw})|][frame=on] }% \NC #1 \NC #2 \NC \NR \stoptabulate} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, command=\MySection, ] \starttext \startsection[title={Title One}][ct={l}] A paragraph \ldots \stopsection \startsection[title={Title Two}][ct={p},pw={30mm}] A paragraph \ldots \stopsection \startsection[title={Title Three is\\a Multi-liner}][ct={p},pw={50mm}] A paragraph \ldots \stopsection \stoptext

  • Failed to position cell with makecell in tabularx
    by user2609605 on February 7, 2026 at 9:29 pm

    Following MnWE: \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{tabu} \usepackage{makecell} \begin{document} \begin{tabularx}{\textwidth}{|@{}>{\raggedright}p{4.5cm}X|} \makecell[cl]{NAME} & \rule[-\dp\strutbox]{3pt}{\headheight}On geometry in KOMA scripts \end{tabularx}% \end{document} I saw the solution but in fact, we cannot see that this is vertically centered because the row is as high as the column. Due to the \rule in my situation it is different and so one can see, that there is no vertical centering. I suspect that the first column is as high as the text, so not as high als the 2nd column. How to get the 1st column vertically centered??? To be honest, there is another requirement: want to use in a header. So I search for solutions which can be fit precisely into given height and width.

  • Adding whitespace in both the "before" and "beforesection" options of setuphead
    by Gary on February 7, 2026 at 8:40 pm

    This question comes out of the comments from this question and I didn't want to add more to it. (If the former should be deleted, I will; please let me know.) The issues were that 1) I didn't want the whitespace before a section title to start at the end of the previous page when there was some space left after the preceding paragraph; 2) I wanted some whitespace before the title but, when the title starts a new page, not as as much whitespace because the headerdistance adds the appearence of additional whitespace. The use of framedtext provided by @MaxChernoff in this answer worked as shown below. The whitespace between the header rule and the title is about the same as for a title surrounded by text; and Section III is moved to the next page and spaced properly. The space before a title is split into two values, one in the framedtext option of toffset which is like forced and fixed; and another in the setuphead option beforesection using \blank which is suppressed at the top of a new page. \setuplayout[ height=4in, width=4in, topspace=0.33in, top=0.33in, topdistance=0in, headerdistance=3mm, footerdistance=0.150in, header=\lineheight, footer=\lineheight, bottom=0.255in, bottomdistance=0in, bottomspace=0in] \settextcontent[header][text] [middletext][section][section] \setupheader[text][ style=\sc, after={\hrule height 0.8pt} ] \define[2]\MySection{% \framedtext [frame=off, width=\textwidth, offset=none, toffset=3mm, align=center]{#1 #2} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, command=\MySection, beforesection={\blank[2mm]}, before=, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext % \showframe \startsection[title={Title One},marking={Header One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two},marking={Header Two}] \input{ward} A few more word to extend the paragrahp down two lines in order to push the head forward one line. \stopsection \startsection[title={Title Three},,marking={Header Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Next, I tried to render the same result using \testpage as suggested by @mickep, figuring that \framedtext is performing about the same test to determine if the framed title can all fit on the page. I think that part works but I haven't been able to get the spacing to be correct. My reasoning/expectation was that, in the example below, the beforesection={\testpage[4]\blank[2mm]}, will test for four lines left on the page. If there are four lines, it will write 2mm of whitespace; if not, it will insert a pagebreak and the 2mm of whitespace will be suppressed at the top of the page. Then the before={\blank[force,fixed,3mm]}, will write 3mm of whitespace whether at the top of a page or not since it is forced. But that is not what is occurring; and, instead, there is extra whitespace when the title is at the top of a page and less when it is surrounded by text. I apologize for being so dense and slow to understand this, but would you please tell me what I'm failing to observe hereto make the two methods render the same results? Thank you. \setuplayout[ height=4in, width=4in, topspace=0.33in, top=0.33in, topdistance=0in, headerdistance=3mm, footerdistance=0.150in, header=\lineheight, footer=\lineheight, bottom=0.255in, bottomdistance=0in, bottomspace=0in] \settextcontent[header][text] [middletext][section][section] \setupheader[text][ style=\sc, after={\hrule height 0.8pt} ] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, beforesection={\testpage[4]\blank[2mm]}, before={\blank[force,fixed,3mm]}, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext % \showframe \startsection[title={Title One},marking={Header One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two},marking={Header Two}] \input{ward} A few more word to extend the paragrahp down two lines in order to push the head forward one line. \stopsection \startsection[title={Title Three},,marking={Header Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext

  • Helvetica (phv) inconsistency: how to do it correctly?
    by karlh on February 7, 2026 at 7:00 pm

    I am trying to use text in a particular font (in this case, a Helvetica clone) without bringing on an entire package and/or forcing the user to use a particular package. A minimal example is below: \documentclass{article} \usepackage{tikz} \begin{document}\noindent This is document text. \begin{center} \begin{tikzpicture} \begin{scope}[every node/.style={transform shape}] \renewcommand*{\sfdefault}{phv} \node {\resizebox{!}{0.5cm}{\sffamily WOOHOO!}}; \end{scope} \end{tikzpicture} \end{center} This is more document text. \end{document} However, I get different results with different engines, as shown: My questions: (1) why doesn't LuaLaTeX show the same result as PDFLaTeX? (2) What is the "right" (read: most portable) way to include a single piece of Helvetica (or some other font) in this manner without dragging in an entire package or forcing the use of a particular TeX engine?

  • PicTeX and \begin{picture} compatibility
    by jarnowicz on February 7, 2026 at 6:57 pm

    Perhaps silly question, but how compatible are the macros of the older PiCTeX package, Plain compatible, with the newer picture environment, accesible through the autopict package from the graphics-pln package through either Plain or eplain ?

  • xypic loop error
    by underwhelmer on February 7, 2026 at 6:51 pm

    Here are two different bits of code that difer by exactly one letter: Number 1: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \begin{displaymath} \xymatrix{ { \begin{tabular}{c|c} \hline $x_2$ & 7 \\ \hline $x_3$ & 4 \\ \hline \end{tabular} } \ar@(ul,dl)[]_{\pi^0} } \end{displaymath} \end{document} Number 2: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \begin{displaymath} \xymatrix{ { \begin{tabular}{c|c} \hline $x_2$ & 7 \\ \hline $x_3$ & 4 \\ \hline \end{tabular} } \ar@(l,dl)[]_{\pi^0} } \end{displaymath} \end{document} The difference is that in number 2, the arrow is modified with @(l,dl) while in number 1 it is modified with @(ul,dl) Number 1 doesn't compile. Number 2 does but looks ugly. I'd like Number 1 to compile and look better than Number 2 in the way it should. Since I know it will come up: no, I'm not willing to switch to tikz. Yes, I know tikz is better. But I know the syntax for xypic and have been using it for sneaking up on twenty years and I just turned 40 and am thus officially allowed to be a stick in the mud about things.

  • Context: positioning figures in pages with texts having different column widths
    by Georgian Ilie on February 7, 2026 at 5:16 pm

    Good evening everyone, I am facing a problem with the placement of figures in a multicolmn document. The code below shows what I have in mind regarding the layout of this document: \setuphead[section] [mainface, style=\ss\bf, before=\blank[2pt], after=\blank[2pt]] \setuphead[chapter] [page=right, style=\ss\tfc\bf, header=high, before=\blank[-big], after={\blank[3*big]\placecontent[criterium=local]\blank[6*big]}] \definecolumnset [example] [n=2] \definecolumnsetspan[wide][n=2] \starttext \startcolumnset[example] \startcolumnsetspan[wide] \startchapter[title=Introduction] \stopcolumnsetspan \startsection[title=Happy] The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack!" my brave ghost pled. Five quacking zephyrs jolt my wax bed. Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves quart jug of bad milk. A very bad quack might jinx zippy fowls. Few quips galvanized the mock jury box. Quick brown dogs jump over the lazy fox. The jay, pig, fox, zebra, and my wolves quack! Blowzy red vixens fight for a quick jump. Joaquin Phoenix was gazed by MTV for luck. A wizard’s job is to vex chumps quickly in fog. Watch "Jeopardy!", Alex Trebek's fun TV quiz game. Woven silk pyjamas exchanged for blue quartz. Brawny gods just \stopsection \startcolumnsetsheet[1] \startsetcolumnset[c=2,r=10,ntop=1,nbottom=1] \startframed [height=6\lineheight, width=\columnsethspan{2}{1}, align={middle,lohi}, background=color, backgroundcolor=yellow] \stopframed \stopsetcolumnset \stopcolumnsetsheet \startsection[title=Sad] The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ in their grammar, their pronunciation and their most common words. Everyone realizes why a new common language would be desirable: one could refuse to pay expensive translators. To achieve this, it would be necessary to have uniform grammar, pronunciation and more common words. If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual languages. The new common language will be more simple and regular than the existing European languages. It will be as simple as Occidental; in fact, it will be Occidental. To an English person, it will seem like simplified English, as a skeptical Cambridge friend of mine told me what Occidental is. The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ in their grammar, their pronunciation and their most common words. Everyone realizes why a new common language would be desirable: one could refuse to pay expensive translators. To achieve this, it would be necessary to have uniform grammar, pronunciation and more common words. If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual languages. The new common language will be more simple and regular than the existing European languages. It will be as simple as Occidental; in fact, it will be Occidental. To an English person, it will seem like simplified English, as a skeptical Cambridge friend of mine told me what Occidental is.The European languages are members of the same family. Their separate existence is a \stopsection \startcolumnsetsheet[2] \startsetcolumnset[c=2,r=10,ntop=1,nbottom=1] \startframed [height=6\lineheight, width=\columnsethspan{2}{1}, align={middle,lohi}, background=color, backgroundcolor=yellow] \stopframed \stopsetcolumnset \stopcolumnsetsheet \stopcolumnset \stoptext Essentially, the chapter title contians a minitoc and it extends over the two text columns. If I try to place an image inside this page, it is not inserted, whereas the same image is correctly positioned in the following page. Can somenone explain me why is this happening and how can solve this issue? Thank you in advance for your help.

  • How obtain Cyrillic with Lucida Bright and unicode engine?
    by murray on February 7, 2026 at 4:37 pm

    With pdfLaTeX, the following code works as expected, including rendering the Cyrillic portion of the text: \documentclass{article} \usepackage[russian,english]{babel} % Optional: for hyphenation \babeltags{russian=russian} \usepackage[T2A,T1]{fontenc} \usepackage{newtx} \DeclareFontFamilySubstitution{T2A}{\rmdefault}{Tempora-TLF} % for Cyrillic \begin{document} `\textrussian{Тихонов}' is often transliterated as `Tychonoff'. \end{document} How can I similarly produce the Cyrillic characters if, instead, I use the LuaLaTeX engine and Lucida Bright font, as in the following? % !TEX program = lualatex \documentclass{article} \usepackage{fontspec} \usepackage[russian,english]{babel} % Optional: for hyphenation \babeltags{russian=russian} \babelfont{rm}[Scale=0.92,DefaultFeatures={Ligatures=TeX}]{LucidaBrightOT.otf} \begin{document} `\textrussian{Тихонов}' is often transliterated as `Tychonoff'. \end{document}

  • Numbered citation with multiple sources without line break on dash
    by Kalo on February 7, 2026 at 1:44 pm

    I have a document using the revtex4-2 class. Citations using the standard \cite{...} command are numbered, and when there are multiple sources in the citations (\cite{ref1,ref2,...,refN}) that have consecutive numbers, they appear as summarized with the first and last numbers around an en-dash, as "[1-N]". I would like to keep all of this functionality, but prevent line breaks: before citations; and before or after the en-dash inside a summarized citation. I achieve the first by using a tilde between the text and the citation command, i.e. ~\cite{...}. However, I notice that in many cases I get line breaks after the en-dash in the citation. How can I achieve the second?

  • ConTeXt: customize citation numbers
    by Georgian Ilie on February 7, 2026 at 1:33 pm

    Good afternoon everyone, I am trying to tweak the appearance of the citation numbers of a document. To reach the intended result, I am using the approach reported in the next code: \startbuffer[biblatex-chem] @Article{Booth1962, hyphenation = {british}, author = {Booth, G. and Chatt, J.}, title = {The reactions of carbon monoxide and nitric oxide with tertiary phosphine complexes of iron(II), cobalt(II), and nickel(II)}, journal = {J.~Chem. Soc.}, year = {1962}, pages = {2099--2106}, doi = {10.1039/JR9620002099}, annotation = {An article which does not have a volume number} } @Article{Arduengo1991, hyphenation = {american}, author = {Arduengo, III, Anthony J. and Harlow, Richard L. and Kline, Michael}, title = {A stable crystalline carbene}, journal = {J.~Am. Chem. Soc.}, year = {1991}, volume = {113}, pages = {361--363}, number = {1}, doi = {10.1021/ja00001a054}, annotation = {An article with ``III'' in the author section} } @Book{Armarego2003, hyphenation = {british}, title = {Purification of Laboratory Chemicals}, publisher = {Butterworth--Heine\-mann}, year = {2003}, author = {Armarego, W. L. F. and Chai, Christina Lin Li}, address = {London}, edition = {5}, annotation = {A simple \texttt{book} entry} } \stopbuffer \definebtx[default] \usebtxdataset[default][biblatex-chem] \loadbtxdefinitionfile[aps] \definebtxrendering[define][aps][dataset=default] \setupbtx[default:cite:num][command=\high,right={\high{)}},left={\high{(}}] \starttext \subject[title=Hello] But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. \cite[Booth1962,Arduengo1991,Armarego2003] To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee \cite[Booth1962,Arduengo1991] \starttitle[title=Bibliography] \placelistofpublications[default][method=global] \stoptext The compilation of this code sends out two pages: As you can notice, the parentheses and the comma present in the two citations seem bigger than the citations' numbers, and respecting to the latter they are off-centre. How do I solve these issues? Thank you in advance for your help.

  • pgfplotstable: add vspace depending of row value (above rows that contain a zero)
    by cis on February 7, 2026 at 1:12 pm

    I have a pgfplotstable in it's column named k are some zeros and the very first k-value is alway zero. How could I add a remarkable space above these rows which contains zeros in the k-column? (Alternativly a \hline above the "0-row" could be thinkable.) \documentclass[margin=5pt, varwidth]{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat=1.18} \begin{document} \pgfplotstabletypeset[col sep=comma, string type, every head row/.style={before row=\hline, after row=\hline}, string replace={0}{\color{red}0},% just for highlighting ]{ No, n, k, 2, 3, 4 0, 1, 0, 2, 3, 4 1, 1, 1, 2, 3, 4 2, 2, 0, 2, 3, 4 3, 2, 1, 2, 3, 4 4, 2, 2, 2, 3, 4 5, 4, 0, 2, 3, 4 6, 4, 1, 2, 3, 4 7, 4, 2, 2, 3, 4 8, 4, 3, 2, 3, 4 9, 4, 3, 2, 3, 4 } \end{document}

  • Label equation terms with aligned labels
    by ecoer on February 7, 2026 at 1:01 pm

    I'd like to label each term of an equation like this: I tried with \underset, \mathop, \underbrace... but, since some terms take more vertical space than others, all the labels are on different heights. This is the closest I got to what I want, using alignat, but still the numerals are not centered: \begin{alignat*}{7} &\frac{\partial u_i}{\partial t} + &&u_j \frac{\partial u_i}{\partial x_j} &&= &&-g\delta_{i3} + &&f\varepsilon_{ij3}u_j - &&\frac{1}{\rho}\frac{\partial p}{\partial x_i} + &&\nu\frac{\partial ^2u_i}{\partial x^2_j} \\ & \text{I} && \text{II} && && \text{III} && \text{IV} && \text{V} && \text{VI} \end{alignat*} How can I label in a clear, aligned way? PS: this is just the equation: $\frac{\partial u_i}{\partial t} + u_j \frac{\partial u_i}{\partial x_j} = -g\delta_{i3} + f\varepsilon_{ij3}u_j - \frac{1}{\rho}\frac{\partial p}{\partial x_i} + \nu\frac{\partial ^2u_i}{\partial x^2_j}$

  • MakeLowercase not working with lipsum
    by Jonathan Webley on February 7, 2026 at 9:34 am

    This MWE: \documentclass{article} \usepackage{lipsum} \begin{document} \MakeLowercase{\lipsum[1][1]} \end{document} generates: Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

  • Where is the l3benchmark.sty file located?
    by Alain Matthes on February 7, 2026 at 8:24 am

    I wanted to test an old file, but I got an error. ! LaTeX Error: File `l3benchmark.sty' not found. My distribution is up to date, so I assume this file has been removed. What can I replace it with? \RequirePackage{l3benchmark} \ExplSyntaxOn \AtEndDocument { \benchmark_toc: } \benchmark_tic: \ExplSyntaxOff \documentclass{article} \usepackage{tikz} \begin{document} \directlua{ function f(t0, t1, n) local filename = tex.jobname .. ".table" local out = assert(io.open(filename, "w")) for t = t0, t1, (t1 - t0) / n do local x = math.sin(5*t) local y = math.cos(3*t) out:write(x, " ", y, " i", string.char(10)) % or out:write(x, " ", y, " i\string\n") end out:close() end } \begin{tikzpicture}[scale=4] \directlua{f(0, 2*math.pi, 256)}% \draw[red] plot[smooth] file {\jobname.table}; \end{tikzpicture} \end{document}

  • combine column in tcolorbox
    by 조문수 on February 7, 2026 at 5:09 am

    I want to merge columns using the side-by-side rule in tcolorbox. How can I create something like the image below using tcolorbox? | contents -1 | figure | | contents -2 |

  • Test if item to be written is at the top of the page?
    by Gary on February 7, 2026 at 4:38 am

    Is it possible to test within a before option command whether or not the item to be written is at the top of the page? For example, I tried in \setuphead before={\doiftopofpageelse{...true...}{...false...}} and it is always true even when the head item is not being written at the top of the page. Thank you. For example, every section below shows "top of the page". Why? \setuplayout[height=4.7in,width=4in] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, before={\blank[0mm]}, beforesection={\doiftopofpageelse{\hrule{top of page}}{\hrule{not top of page}}}, after={\blank[5mm,]}, style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Added There are two parts to the item I can't get to work as needed. It occurs when a section's before area is at the bottom of a page and the head title is at the top of the next page. For example, I need to get the whitespace of the before to move to the top of the next page. The second part of it is to know when this occurs such that I can reduce that whitespace by the size of the distance between the header and the text block so the overall space above and below the section header is about even rather than more on the top. Thanks. \setuplayout[height=5.85in,width=4in] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, beforesection={{\darkred(beforesection)}}, before={{\darkblue(before)}\blank[force,line]}, after={{\darkblue(after)}}, aftersection={{\darkred(aftersection)}}, style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext Yet another addition I need to read about \testpage[] but the context wiki site responds with forbidden, here. In the meantime, the framedtext approach as @MaxChernoff provided here appears to be working for a "real" section also. I think I can adjust the toffset by the header distance and add it in \setuphead with a \blank that will be suppressed at the top of a new page only. \setuplayout[height=4.5in,width=4in,] \define[2]\MySection{% \framedtext [frame=on, width=\textwidth, offset=none, toffset=5mm, align=center]{#1 #2} } \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, command=\MySection, before=, after={\blank[5mm]}, aftersection=\blank[back], style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] \input{ward} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext

  • Forcing blank vertical space at the top of a page when force option alone doesn't do it?
    by Gary on February 6, 2026 at 10:41 pm

    How can the blank space above \SectionTitle III be forced at the top of page 2 as it is on the top of page 1? I've tried using \blank[5mm,force] directly but with no change. Am I mis-using the \define command or \definedelimitedtext? I'm just trying to declare this command because it needs to be used many, many times in this document (and it is not a "real" section linked to headers or the TOC). It works, as is, when there is a pagebreak but not when the text flows such that the title starts at the top of a new page. Thank you. \setuplayout[height=4.5in,width=4in] \definedelimitedtext[ST][ spacebefore={5mm,force,fixed}, spaceafter=5mm, ] \define[1]\SectionTitle{% \startST \startalignment[middle] \tfa\it#1 \stopalignment \stopST} \starttext \showframe \SectionTitle{I. Title One} A paragraph of the to fill the line to observe the spacing. \SectionTitle{II. Title Two} \input {ward} \SectionTitle{III. Title Three} A paragraph of the to fill the line to observe the spacing. \SectionTitle{IV. Title Four} Paragraph. \stoptext Added In looking at this further, perhaps the space is being added but the distance is being counted from the end of the previous paragraph and not the top of the page; because the previous page does not reach the bottom since the last paragraph ends one line before the last possible print line. Something that appears closely related and confusing to me is that if change the body to \starttext \showframe \SectionTitle{I. Title One} A paragraph of the to fill the line to observe the spacing. \SectionTitle{II. Title Two} \input{ward} A new line of text to fill the space to reach the very last line. A new paragraph. \SectionTitle{III. Title Three} \stoptext the result is as expected below But, if remove the short "A new paragraph" just before section III, the result is as below; and what confuses me is why the last two lines of the last paragraph of page 1 are now moved to page 2. The same occurs if use \blank[5mm, force] \midaligned{III. Title Three} \blank[5mm] in that, once try to force the space at the top, the two lines of the previous paragraph move also. Is it possible to "separate" the before space from the previous paragraph? Thank you. Also, if, instead of trying to define a command to style a title that isn't a section in any real way, it is defined as a section or subsection that can be excluded from the TOC and headers, then all works as expected. For example, \setuplayout[height=4.5in,width=4in] \setuphead[section][ conversion=Romannumerals, sectionstopper={.}, align=center, before={\blank[5mm,force]}, after={\blank[5mm]}, style={\tfa\it}, ] \starttext \showframe \startsection[title={Title One}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Two}] {\input{ward} A new line of text to fill the space to reach the very last line.} \stopsection \startsection[title={Title Three}] A paragraph of the to fill the line to observe the spacing. \stopsection \startsection[title={Title Four}] A paragraph of the to fill the line to observe the spacing. \stopsection \stoptext renders This is what I expected would happen for my attempt at defining \SectionTitle command.

  • How can I get text (marginnote) next to a tabularray-row?
    by lukascbossert on February 6, 2026 at 10:12 pm

    I would like to have short information next to certain rows of tabularray-environment, like a marginnote. The content in the note is a macro (here just text). The issue I face is: ! Undefined control sequence. <argument> \@currbox l.68 \requestedFundingTable[A1] TeXnically it does not necessarily need to be a \marginpar but also anything that would get text next to the specific row. \documentclass{scrartcl} \usepackage{xcolor} \usepackage{tabularray} \UseTblrLibrary{siunitx} \UseTblrLibrary{functional} \ExplSyntaxOn \tl_new:N \l__tmp_body_staff_tl \tl_new:N \l__tmp_body_costs_tl \NewDocumentCommand{\requestedFundingTable}{o}{ Table~ #1 :\par \tl_clear:N \l__tmp_body_staff_tl \tl_clear:N \l__tmp_body_costs_tl \tl_put_right:Nn \l__tmp_body_staff_tl { \SetRow{red!20} \SetCell{font=\footnotesize\bfseries,halign=l} Staff & Qty & Sum \\ } \tl_put_right:Nn \l__tmp_body_costs_tl { \SetHline{-}{red,0.5pt} \SetRow{red!20} \SetCell{font=\footnotesize\bfseries,halign=l} Direct~ Costs & \SetCell[c=2]{c} Sum & \\ } % further processing in between \tl_put_right:Ne \l__tmp_body_staff_tl { category & 12 & 123 \\ } \tl_put_right:Ne \l__tmp_body_costs_tl { \SetRow{cmd={\marginpar{A note: #1}}} %<<<<<<<<<<<<<<<<<<<<<<<<< category & \SetCell[c=2]{c} 1234 & \\ } \begin{tblr}[ long, expand= \l__tmp_body_staff_tl \l__tmp_body_costs_tl, ]{ colspec = { *{1}{X[4,m]} *{2}{X[r, si={table-format=4}]} }, row{1,2} = {guard}, } CATEGORY & \SetCell[c=2]{c} year & \\ \l__tmp_body_staff_tl \l__tmp_body_costs_tl \end{tblr} } \ExplSyntaxOff \begin{document} \requestedFundingTable[A1] \requestedFundingTable[A2] \end{document}

  • How to make f\left(x\right) not add extra space after f?
    by Nasser on February 6, 2026 at 8:01 pm

    I tried all answers in Spacing around \left and \right and none of them work. I use code generate by computer CAS. And all the code generates \left(...\right). So not possible to do any manual editing of latex code generated. Only issue is that something like f\left(x\right) adds extra space between function name f and the parentheses. I am not talking about any space inside parentheses, but the space outside between function name and starting (. I only want this space to be the same as if code was written using f(x). Nothing else change. First, here is MWE showing the issue \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Compiled with lualatex gives Notice how the space after function name is larger when using \left(...\right) which is the second equation. I'd like the space after function names and starting ( in the second equation to be same as first equation as it looks better. Below are all my tries. Some of them fix the space after g and not after f and some solution fix the space after f but not after g. But there is no solution which produce same exact output for second equation as the first one. Try 1 (accepted answer in the above link) \documentclass[12pt]{article} \let\originalleft\left \let\originalright\right \renewcommand{\left}{\mathopen{}\mathclose\bgroup\originalleft} \renewcommand{\right}{\aftergroup\egroup\originalright} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives Notice the space after g in second equation have become too small. Try 2 \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \usepackage{mathtools} \DeclarePairedDelimiter\pars{\lparen}{\rparen} \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives No effect. Larger space after function names still exist. Try 3 \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \let\originalleft\left \let\originalright\right \def\left#1{\mathopen{}\originalleft#1} \def\right#1{\originalright#1\mathclose{}} \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives Again, now space after g is too small. Try 4 \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \Umathopinnerspacing\displaystyle=0mu \Umathopinnerspacing\textstyle=0mu \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives Still, the space between function names and ( is not same in second equation as first equation. try 5 \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \def\delim#1#2#3{ \mathopen{\left#1 \vphantom{#2} \right.} \kern-\nulldelimiterspace #2 \kern-\nulldelimiterspace \mathclose{ \left. \vphantom{#2} \right#3 } } \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives Still, the space between function names and ( is not same in second equation as first equation. Try 6 \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{kpfonts,baskervald} \usepackage{amsmath} \usepackage{mleftright} \renewcommand{\left}{\mleft} \renewcommand{\right}{\mright} \begin{document} \begin{align*} \int \frac{dy}{g(y)} &= \int f(x) \, dx\\ \int \frac{dy}{g\left(y\right)} &= \int f\left(x\right) \, dx \end{align*} \end{document} Gives The space after f looks same as in equation 1, but the space after g in second equation is now too small.

  • Unequal parens sizes in numerator and denominator of a fraction
    by Knudsen on February 6, 2026 at 2:22 pm

    Why are the parens on the numerator of this construction much bigger than the ones in the denominator? \documentclass{report} \usepackage{amsmath} \begin{document} \[ \frac{\left(q^k\right)} {\left(q^k\right)} \] \end{document}

  • Bold + Italic Greek symbol in PlainTeX
    by GowriSaro on February 6, 2026 at 1:48 pm

    I am aware that in LaTeX, \boldsymbol tag will produce Greek characters in Bold+Italic font, but how can I achieve this using PlainTeX, I tried with: $$ \alpha $$ \bye

  • How to use the \convolution operator command provided by fontsetup with ConTeXT? (using PUA glyphs in ConTeXt)
    by Apoorv Potnis on February 6, 2026 at 11:54 am

    The fontsetup package provides with a \convolution operator command to access a big star symbol from the New Computer Modern fonts. However, fontsetup works only with XeLaTeX and LuaLaTeX. How does one access this glyph from the NewCM fonts with ConTeXt? The \convolution command is defined in fspdefault.tex as \DeclareMathOperator*{\convolution}{\mathchoice{\char"E037}{\char"E036}{\char"E038}{\char"E039}}. The question essentially asks about using glyphs not encoded their Unicode slots (Private Use Areas?), as a Unicode slot for the glyph does not exist. ConTeXt MWE: \setupbodyfont[newcomputermodern] \startTEXpage[offset=1TS] \startformula \convolution_{1\le i\le n} a_i \stopformula \startformula \sum_{i=1}^n \convolution_{i=1}^n x_i \qquad \textstyle \sum\convolution_{i=1}^n x_i \qquad \scriptstyle \sum\convolution_{i=1}^n x_i \qquad \scriptscriptstyle \sum\convolution_{i=1}^n x_i \stopformula \stopTEXpage

  • Finding and displaying the intersection points of two surfaces
    by SH.Madadpour on February 6, 2026 at 10:23 am

    How can I display the intersection of the following two surfaces in LaTeX? I have used the following codes as a default but I am not getting acceptable output. Is it possible to create a form to find its intersection points in LaTeX? Thanks a lot. \documentclass[border=3.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture} \begin{axis}[domain=0.01:30,xlabel=$x$] \addplot3[surf,domain={0:1},color=green]{x^3+y^3}; \addplot3[surf,domain={0:1},color=red]{(x*(1-y^2)^(.5)+y*(1-x^2)^(.5))^3}; \end{axis} \end{tikzpicture} \end{document}

  • tikz / xint: Read out (and calc with) fractions from list (or array) with xint or pgfmath
    by cis on February 6, 2026 at 8:45 am

    How can I read out numbers from a list, say \def\pList{0.1, 1/6, 0.25, 0.4} (or array, say \def\pListArray{{\pList}}), with xint? Background: I want to keep fractions, like 1/6 in it's original form (not decimal value 0.1666 here). On the other hand, I need to calc 1-<value> too, and I want, in the case of 1/6 the value 5/6 (=1 - 1/6). I have a main document with a lot of xint content and calculations; therefore, for consistency reasons, it should be done with xint (it's clear that there are other packages or methods for this); and: There must be a method in the xint-package that I can't find in the manual. Does anybody know? \documentclass[margin=5pt, varwidth]{standalone} \usepackage{tikz} \usepackage{xintexpr} \begin{document} \def\pList{0.1, 1/6, 0.25, 0.4}% List \def\pListArray{{\pList}} \section{The pList} \pList \section{pgfmath-test for fraction-readout (bad)} p=\pgfmathprint{\pListArray[0]}, q=\pgfmathprint{1-\pListArray[0]} good. But p=\pgfmathprint{\pListArray[1]}, q=\pgfmathprint{1-\pListArray[1]} bad. \section{xint-test for fractions (good), but how to readout?} p=\xinteval{1/6}, q=\xinteval{1-1/6} \end{document}

  • Make perfect circular diagrams
    by Fran on February 5, 2026 at 12:23 pm

    I know that I can make circular diagrams with the nice smartdiagram package, but arrows do not fit perfectly in a imaginary circle. In fact, the diagram is far from a circle when there are only two or three nodes: \documentclass{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagramset{ connection color=red, module shape= circle, circular distance=2cm, uniform color list=white for 6 items, uniform arrow color=true, arrow color=black} \smartdiagram[circular diagram:clockwise]{foo, bar} \end{document} I know also that there are several examples in this site about making circular diagrams without this package, but translating these examples to diagrams with a different numbers of nodes is complex, so I tried an automated solution with tikz (without really knowing what I was doing, I have to admit) so that I only have to modify a list of nodes in \mylist and little more to obtain the result: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ > = Stealth, every node/.style = {circle, draw, thick, minimum width=1cm, align=center} ] \def\mylist{foo, bar, baz} % play with this \foreach \x [count=\i from 1] in \mylist {\xdef\n{\i}} \def\radio{2cm} % and this if needed \foreach \texto [count=\i from 0] in \mylist{ \pgfmathsetmacro\ang{-\i*360/\n} \node (n\i) at (\ang:\radio) {\texto}; } \foreach \dummy [count=\i from 0] in \mylist{ \pgfmathsetmacro\j{int(mod(\i+1,\n))} \pgfmathsetmacro\angini{-\i*360/\n} \pgfmathsetmacro\angfin{-\j*360/\n} \pgfmathsetmacro\outang{mod(\angini - 90 + 720, 360)} \pgfmathsetmacro\inang {mod(\angfin + 90 + 720, 360)} \draw[->, thick, line width=1.4pt] (n\i) to[out=\outang, in=\inang, looseness=.9] (n\j); % and with the looseness } \end{tikzpicture} \end{document} Mainly it works. The problem is that like in smartdiagram, the arrows don't perfectly follow an imaginary circle, that was the idea behind getting involved in this business. Playing with looseness is possible to correct a bit the curvature of the arrows, but it's tedious and the result is never perfect. So, the result should be ideally near to the image below (that I modified manually in Inkscape) and still require minimal settings to adapt the code to diagrams of n nodes. Fixes of the MWE as well as alternative approaches are welcome. Edit Thank you all for the excellent suggestions. This time, I am truly sorry I can only accept one.

  • Looking for a symbol like big \ast
    by Dimitrios ANAGNOSTOU on February 5, 2026 at 9:16 am

    The question is rather simple. How to obtain the following big asterisk symbol? I apologize if it is duplicate. Thank you very much.