7 · Tx · 197 questions
LaTeX & TikZ
Working solutions for tables, figures, bibliographies, TikZ and pgfplots.
latex 68tikz 25pgfplots 23beamer 20tikz pgf 16tables 15enumitem 12math mode 11enumerate 9amsmath 7bibliography 7math symbols 7macros 7cv 6miktex 6biblatex 6latex errors 6fonts 6sectioning 5lists 5templates 5graphics 5windows 5packages 5texlive 5symbols 5multicol 5images 4floats 4installing 4
Questions
- How to Break a Subsection Title in BeamerBreak a long Beamer subsection title with a short navigation title, protected line breaks, and a PDF-bookmark-safe alternative.
- How to Include SVG Diagrams in LaTeXUse LaTeX’s svg package and Inkscape to convert SVG files automatically, or convert them to PDF and include them with graphicx.
- How to Include a Matplotlib Figure in LaTeXSave a complex Matplotlib figure as PDF, then include it in LaTeX with graphicx. Use PNG only when raster output is required.
- How to Include a Signature Image in scrlttr2Add a handwritten signature to a KOMA-Script scrlttr2 letter by placing graphicx's includegraphics command in the signature variable.
- Why Do Brackets Grow Around a Power in LaTeX?LaTeX enlarges \left and \right brackets to fit enclosed superscripts. Use matched fixed-size delimiters such as \bigl and \bigr to control them.
- How to Increment and Decrement Variables in TikZIncrement or decrement TikZ variables with PGF math, foreach evaluate expressions, TeX counters, or relative coordinates using the correct syntax.
- How to Indent Nested Lists with Short Labels in enumitemUse enumitem’s level-specific settings, widest, and leftmargin=* to align nested list text even when labels are short.
- How to Insert a Full-Width Table in a Two-Column LaTeX DocumentUse LaTeX's table* environment to span both columns, and set the tabular width to textwidth when the table should fill the page.
- How to Put a Picture on the Left in a LaTeX CVPlace a CV photo to the left of your details in LaTeX with two top-aligned minipages, and adjust image size and spacing safely.
- Why Does a Black-and-White JPG Appear Black in a PDFLaTeX Document?A black JPG in a PDFLaTeX document often points to a CMYK or YCCK color-space issue. Check the file and convert it to PNG or sRGB.
- How to Insert Multiple Figures with a Python Loop in LaTeXUse PythonTeX's pyblock environment to loop over image filenames and generate LaTeX figure commands, then run PythonTeX between LaTeX compilations.
- How to Install a Downloaded Package with tlmgrUse tlmgr install for packages in a TeX Live repository, or --file for a TeX Live archive; install ordinary CTAN source files manually.
- How to Install the TikZ Package for TeXstudioInstall TikZ through MiKTeX, TeX Live, or your operating system’s package manager; TeXstudio itself does not manage LaTeX packages.
- How to Install pdflatex on Windows, macOS, or LinuxInstall pdflatex by installing a TeX distribution: MiKTeX or TeX Live on Windows, MacTeX on macOS, or TeX packages on Linux.
- How to Install and Use ExcelTeX with LaTeXInstall ExcelTeX through your TeX distribution, add its spreadsheet-side exporter, and include the generated TeX output in your document.
- Best Practices for Publishing Computer Code with LaTeXLearn when to use verbatim, listings, or minted, with complete LaTeX examples for readable, maintainable, and safe code publication.
- How to Draw a Random Signal Shape in TikZDraw a reproducible random staircase signal in TikZ with pgfmathrandominteger, or modify the pattern for continuous random data.
- How to Write the erf Function in LaTeXTypeset the error function correctly in LaTeX using \operatorname{erf} or a reusable \erf command from the amsmath package.
- How to Left-Align an Align Environment in BeamerUse the fleqn option with beamer and set mathindent to zero to make align environments start at the left margin.
- How to Make Dotted Grid Lines in pgfplotsUse grid style={dotted} in pgfplots, with grid=both and minor tick settings when you need dotted major and minor grids.
- How to Go from a PDF to Its Source in TeXstudioUse SyncTeX in TeXstudio to connect a PDF location to its LaTeX source; enable it, recompile, then Ctrl-click the PDF text.
- How to Rerun Biber on a LaTeX FileTo rerun Biber, compile your LaTeX document once to create its .bcf file, run Biber on the document basename, then compile LaTeX again.
- How to Reduce Space Between a Proof and an Enumerated ListUse enumitem’s topsep option to reduce space around an enumerate list; adjust the proof environment too if its bottom spacing remains.
- How to Write Pseudocode in LaTeX with TexmakerWrite pseudocode in Texmaker by loading the algorithm and algpseudocode packages, then using their environments and commands in a LaTeX document.
- How to Diagnose a CircuitikZ Compilation ErrorA CircuitikZ error depends on the first message in the log. Use a minimal working example to isolate package, syntax, and version problems.
- How to Fix “I Can’t Find the Format File xelatex.fmt” on LinuxFix the XeLaTeX format-file error on Linux by checking your TeX installation, rebuilding xelatex.fmt, or correcting a mismatched PATH.
- How to Identify an Entry Key in a BibLaTeX SourcemapUse Biber’s special entrykey source in a BibLaTeX sourcemap to match a citation key and conditionally set a bibliography field.
- Why an Image Does Not Show with natwidth and natheightIn a DVI-to-PostScript workflow, natwidth and natheight set assumed dimensions; they do not make PNG or JPEG files render. Use EPS or compile to PDF.
- How to Strike Through a Beamer Item After It AppearsUse Beamer’s \alt overlay command with \sout from ulem to show an item normally first, then strike it through on later overlays.
- How to Show Images in LaTeX Draft ModeKeep draft layout settings but display real images by setting graphicx's draft key to false globally or on individual includegraphics commands.
- How to Typeset the French-Style Long-Division Symbol in LaTeXUse the \longdiv command from the wasysym package to insert a French-style long-division symbol in LaTeX math mode.
- How to Number a BibLaTeX Bibliography HeadingNumber a BibLaTeX bibliography with heading=bibnumbered; see how to adapt the heading for article, report, and book classes.
- How to Avoid Underfull \hbox Warnings with SubfiguresUnderfull \hbox warnings are not caused by subfigures automatically. Check the log, fit the subfigure widths, and fix the paragraph or box that is too loose.
- How to Run Commands in TeXnicCenter on WindowsConfigure TeXnicCenter to compile with MiKTeX or launch another Windows program, including how to set its command, arguments, and working directory.
- How to Increase the TeX Input Buffer for pdfLaTeX or LuaLaTeXIncrease pdfLaTeX or LuaLaTeX's input-line buffer by setting buf_size in an active texmf.cnf, then verify the change and rebuild formats if needed.
- How to Install a LaTeX Package for Use in TexmakerInstall LaTeX packages through MiKTeX, TeX Live, or your operating system’s package manager; Texmaker uses the packages in that TeX setup.
- How to Make a Cross Symbol in LaTeXUse \times in LaTeX for the × multiplication sign and vector cross product; choose a different command for an X mark or dagger.
- How to Define a LaTeX Command in Org ModeDefine a LaTeX macro with #+LATEX_HEADER in Org files, and add it to the preview preamble separately when inline previews need it.
- How to Make a Vertical Box Plot Horizontal in PGFPlotsRotate a PGFPlots box plot by setting boxplot/draw direction=x, then place category labels on the y-axis and values on the x-axis.
- How to Move Contact Details in the ModernCV Oldstyle TemplateModernCV Oldstyle positions contact details through its header layout. Find the header definition, move the details block, and keep the change local.
- How to Align an Inkscape PDF+LaTeX Overlay in LaTeXUse Inkscape’s generated .pdf_tex as the main figure when possible; for a separate overlay, match page bounds and width, then align both boxes.
- How to Add Side-by-Side Plots in an IET LaTeX TemplateAdd side-by-side plots in an IET LaTeX template with subfigure panels, captions and labels, while avoiding common caption-package conflicts.
- How to Prevent LaTeX from Hyphenating the Whole DocumentDisable automatic hyphenation throughout a LaTeX document with the hyphenat package, and learn what to check if words still break.
- How to Produce a List of Prime Numbers in LaTeXFormat prime numbers in LaTeX as a simple list or compact table, with a complete example and advice for generating longer lists.
- How to Create a Vector QR Code in LaTeXCreate a scalable QR code directly in LaTeX with the qrcode package, or use PSTricks for other barcode types and vector output.
- How to Put a Table of Contents in a Beamer HeadlineUse Beamer’s built-in section navigation for a compact headline, and put a multicol table of contents on a regular frame for reliable columns.
- How to Change Comment Layout in algorithmicx PseudocodeRedefine algorithmicx’s algorithmiccomment command to move comments, change their marker or color, or place them on a separate pseudocode line.
- How Do You Determine a Line’s Slope in PGFPlots?Calculate a PGFPlots line’s slope from its data coordinates; learn why automatic axis scaling changes its appearance and how to show it accurately.
- How to Display LaTeX Code in a LaTeX DocumentUse the listings package to show LaTeX source as code, configure its appearance, and place code safely in a Beamer presentation.
- How to Choose and Change a 3D View in TikZSet TikZ's projected x, y, and z directions to change a 3D drawing's view; use pgfplots' view option for plotted 3D data.
- How to Export TikZ Figures to EPSCompile a standalone TikZ figure to PDF, then convert it to EPS with pdftops -eps; check fonts, bounding box, and transparency afterward.
- How to Typeset Capital M for Molarity with siunitxDeclare capital M as a custom siunitx unit, then use it with \unit or \qty; mol/L is an explicit alternative for molarity.
- How to Express Computer Time Units with siunitxFormat seconds, milliseconds, and other computer timing quantities with siunitx, and define custom units for cycles or ticks when needed.
- How to Extend the X-Axis in a PGFPlots GraphIn PGFPlots, set xmin and xmax to control the visible x-range; use enlarge x limits for automatic padding, and distinguish limits from plot domain.
- How to Fix “Extra Alignment Tab” with \multicolumnFix LaTeX’s “Extra alignment tab has been changed to \\cr” error by counting table columns, checking multicolumn spans, and correcting ampersands.
- How to Fix “Not in Outer Par Mode” When Adding a Table to a CVThe “Not in outer par mode” error usually means a floating table is nested inside a CV layout box. Use tabular directly instead.
- TikZ or EPS: Which Should You Use for LaTeX Figures?Compare TikZ and EPS for LaTeX figures, including editability, compiler compatibility, output quality, and when to choose each format.
- How to Use Breaks with LaTeX’s multicol PackageIn LaTeX’s multicol environment, use \columnbreak for a deliberate column break; \filbreak is a plain-TeX page-break macro, not the right tool.
- How to Format BibLaTeX Dates as Day Month YearFormat standard BibLaTeX dates as day month year by customizing the long-date macro, with a complete example and notes on partial dates.
- How to Fit a TikZ Figure on a Landscape PageUse pdflscape to rotate the page and adjustbox to constrain a TikZ figure’s width and height while leaving room for its caption.
- How to Plot CSV Columns with pgfplotsinvokeforeachRead a comma-separated file with pgfplotstable, then use pgfplotsinvokeforeach to plot selected columns against a shared x-column.
- How to Fix LaTeX Equation NumberingFix common LaTeX equation-numbering problems by choosing the right amsmath environment, placing labels correctly, and checking counter settings.
- How to Draw an Equilateral Triangle in TikZDraw an equilateral triangle in TikZ by placing its third vertex at the correct height, or use polar coordinates for a compact construction.
- How to Fix “Can’t Find the Format File pdflatex.fmt”Find the TeX installation behind the error, check whether pdflatex.fmt is available, and regenerate it with the matching fmtutil command.
- Fixing the LaTeX Error: Command \" Invalid in Math ModeThe LaTeX error means the accent command \" was used in math mode. Find why it is there, then use text quotes or a math accent.
- How to Fix Errors Compiling a Beamer File with pdfLaTeXTroubleshoot Beamer compilation by checking the first LaTeX error, confirming the PDF or DVI workflow, and testing a minimal working file.
- Fix “Invalid Escape Sequence Near \%” in LuaLaTeX Chapter TitlesLua rejects the backslash-percent escape in a string literal. Use character codes to emit TeX’s percent command, and protect the macro in chapter titles.
- Why Does a LaTeX Table Trigger “Perhaps a Missing \item”?This LaTeX error is usually raised by an empty or malformed list, not by tabular itself. Find the earlier list boundary and repair it.
- How to Fix “Extended mathchar used as mathchar” with \bmThe error usually means the legacy bm package conflicts with unicode-math. Remove bm and use unicode-math commands such as \symbfit.
- Fix “latexdiff: The Perl Script Could Not Be Found”Fix MiKTeX’s latexdiff Perl-script error by checking the package, Perl installation, PATH, and file-name database, then test from a terminal.
- How to Fix “You Can’t Use a Prefix with `\begingroup`” in LaTeXThis TeX error means a prefix such as \global was applied to a group-opening command; find the prefix and attach it to a valid assignment.
- Using etoolbox’s \ifblank with xkeyvalLoad etoolbox explicitly, then use its \ifblank test inside an xkeyval key handler; the packages work together, but error messages can reveal other issues.
- How to Draw a Double-Headed Arrow in TikZDraw a double-headed arrow in TikZ with the <-> option, or use arrows.meta for customizable arrowhead styles and a complete example.
- How to Put Two Multiline Brace Groups Around an Arrow in LaTeXUse amsmath's aligned environment inside scalable braces, then place the arrow between the two groups; avoid the obsolete eqnarray environment.
- How to Draw a PGFPlots Boxplot from One Data RowTo plot one data row as a PGFPlots boxplot, extract its values into a column and pass that column to the boxplot plot handler.
- How to Draw a Car Profile with TikZDraw a side-profile car in TikZ with a closed body path, Bézier curves, windows, wheels, and details in a complete LaTeX example.
- How to Draw a Spline with PGFPlotsUse PGFPlots' smooth option to draw a curve through coordinate points, and learn when you need a mathematically defined cubic spline instead.
- How to Draw a Half Arrow in TikZPlace an arrowhead halfway along a TikZ line with decorations.markings, or draw an arrow over just half the line by splitting the path.
- How to Draw the Same Angles in pgfplots and TikZMake angles in pgfplots match TikZ by using equal x- and y-unit lengths, then place angle markers at axis coordinates.
- How to Draw Electric Network One-Line Diagrams in TikZDraw an electric network one-line diagram with TikZ using nodes for equipment, lines for connections, and thick strokes for busbars.
- How to Repeat Each Number in a LaTeX Enumerate ListUse enumitem and a small counter-based label command to make a LaTeX enumerate list display 1, 1, 2, 2, 3, 3, and so on.
- How to Reference and Hyperlink Enumerate Items in LaTeXLabel an enumerate item after its \item, then use \ref to print its number; hyperref makes the reference clickable automatically.
- How to Wrap an enumitem List in a LaTeX MacroDefine a reusable enumerate environment with enumitem options by forwarding an optional argument and, if useful, setting a default label.
- How to Set Equal Spacing in an enumerate List in multicolUse enumitem’s itemsep to set a consistent gap between enumerate items in multicol, and adjust topsep and parsep to control other list spacing.
- How to Reveal Definitions One at a Time in BeamerReveal each term and definition on successive Beamer overlays with \item<+->, or use explicit overlay numbers for more control.
- How to Draw Dashed Short Circuits in CircuitikZDraw a dashed short in CircuitikZ by applying TikZ’s [dashed] path style to a short element, and use separate paths for mixed styles.
- How to Set a Local `\graphicspath` for Gnuplot epslatex PlotsScope \graphicspath around the gnuplot-generated TeX file so LaTeX finds its companion graphic without changing paths elsewhere.
- How to Define a Subscripted Unit in siunitxDefine a subscripted siunitx unit with DeclareSIUnit, format its symbol, and use it with qty or unit in this minimal working example.
- How to Plot Different Scales on the Same PGFPlots FigurePlot data with different y-scales in PGFPlots by overlaying two aligned axes with a shared x-range and separate y-limits.
- How to Convert MATLAB Arrays to LaTeX MatricesConvert a numeric MATLAB array into LaTeX matrix code with a short reusable function, control numeric precision, and compile the result.
- Fix “Could Not Start the Command: pdflatex” in a LaTeX EditorFix a LaTeX editor’s “Could not start the command” error by checking pdflatex installation, command syntax, and the executable path.
- How to Make a Variation Table and Graph of ln(x) in TikZBuild a LaTeX variation table for ln(x) and plot its graph with TikZ and PGFPlots using a complete example, with domain and monotonicity notes.
- How to Make a TikZ Arrow Label Perpendicular to the ArrowUse TikZ’s sloped node option to align a label with an arrow, then add rotate=90 to turn its baseline perpendicular to the path.
- How to Customize Chapter and Section Headers with scrlayer-scrpageUse scrlayer-scrpage's automatic chapter and section marks, then place and format those marks in the header fields of your scrbook.
- How to Define a Custom Beamer Frame CommandDefine a command that starts a Beamer frame, then end it with the literal \end{frame}; this also works with beamerarticle.
- How to Set a Different Text Style for Each Enumerate LevelUse enumitem’s level-specific settings to change list text and labels independently at each nested enumerate level in LaTeX.
- How to Customize the Harvard APSR Bibliography Style in LaTeXCustomize the Harvard APSR bibliography in LaTeX by generating a new BibTeX style with custom-bib or editing a local copy of apsr.bst.
- How to Fix Common LaTeX Problems in a CV DraftFix common CV draft errors involving LaTeX's adjustwidth environment by loading the right package, checking its arguments, and testing a minimal example.
- How to Repeat a PGFPlots Style Every n PlotsTo repeat a PGFPlots style every n plots, define a custom cycle list with repeated style entries; each addplot uses the next entry.
- How to Add a Page Break After Every Subsubsection in LaTeXUse titlesec’s after-code argument to run \clearpage after each subsubsection heading, while remembering that it breaks before the section’s text.
- How to Add a Short Abstract After a LaTeX Part HeadingDefine a LaTeX command that prints a part heading followed by a short, consistently formatted abstract, with a complete example you can compile.
- How to Fix “Extended mathchar used as mathchar” with mathastextThe XeLaTeX error “Extended mathchar used as mathchar” often signals conflicting math-font packages. Diagnose the conflict and choose a compatible setup.
- How to Fix MiKTeX Compilation Problems on Windows 8.1Troubleshoot MiKTeX compilation on Windows 8.1 by checking the log, testing pdflatex directly, and fixing installation or source errors.
- How to Add Conditional Formatting in a \newcommandUse \ifthenelse and \equal inside a \newcommand to compare an argument, then put the desired formatting in the true and false branches.
- How to Define a Function Once in PGFPlotsDeclare a PGF math function once, then use it for numerical calculations and ordinary PGFPlots curves without duplicating its formula.
- How to Continue Numbering Sentences and Tables in LaTeXUse enumitem's series and resume options to continue a numbered list; make a table a list item if it must share that sequence.
- How to Fix MathML and MathJax Issues in TeX4htFix TeX4ht equation conversion by choosing MathML or MathJax output, testing a minimal file, and checking generated HTML and browser errors.
- How to Add a Short Figure Caption to LyX’s List of FiguresUse LyX’s short-title setting for a caption to control the List of Figures while keeping the full caption beneath the figure.
- How to Center Selected Chapter Headings in LaTeXUse sectsty's \chapterfont locally to center selected chapter headings while leaving other chapters unchanged, with a complete book-class example.
- How to Center Three Authors in the IEEEconf LaTeX ClassCenter three authors in IEEEconf by placing equally sized, centered minipages in a three-column table inside the normal author field.
- How to Change the Default Line Width in CircuitikZSet CircuitikZ’s default stroke width with TikZ’s line width option; adjust component-symbol thickness separately with bipoles/thickness.
- How to Change Font Size and Type in an enumerate ListUse enumitem's before option to change list text, format to style labels, and label to customize numbering in an enumerate environment.
- Beamer Copenhagen: How to Change the Headline Height?In Beamer's Copenhagen theme, adjust the headline template's color-box heights; \headheight is a different page-style dimension and usually does not control it.
- How to Change the Margins in a LaTeX EnvironmentUse the changepage package’s adjustwidth environment inside newenvironment to inset text locally, or use geometry to change page margins globally.
- How to Change TeX Live’s Package Search Path on LinuxChange TeX Live’s package search path on Linux by setting TEXMFHOME, arranging files in a TeX tree, and checking lookups with kpsewhich.
- How to Change the Closing Indent in KOMA-Script scrlttr2Change the horizontal position of a scrlttr2 closing and signature block with KOMA-Script’s sigindent pseudolength and \setplength.
- How to Put Checkboxes Before List Labels in LaTeXUse enumitem to place a square checkbox before each list item, with a complete LaTeX example and options for alignment and custom labels.
- How to Fix ChkTeX Line Numbers That Point to the Wrong PlaceIf ChkTeX points to the wrong line, compare its terminal output with the saved file, then check included files, editor commands, and line endings.
- Change a CircuiTikZ Current Arrow and Label Color TogetherSet CircuiTikZ's draw color on the component path to color its current arrow and label together; learn what else that setting affects.
- How Are LaTeX Class Files and Style Files Structured?A LaTeX class file defines a document type, while a style file adds features. Learn the standard declarations, loading commands, and a working example.
- Can You Execute Python Code Inside LaTeX?LaTeX does not run Python on its own, but PythonTeX can execute code during a build and insert its results into your document.
- Can You Prevent a LaTeX Package from Redefining a Command?LaTeX has no general switch to block a package from redefining a command. Load it first, then restore or redefine the command at the right time.
- Can You Use nicefrac Within siunitx?Use nicefrac in a siunitx quantity by setting parse-numbers=false locally, so siunitx leaves the fraction untouched and formats the unit.
- How to Stop Beamer Footnotes Overlapping Navigation SymbolsRemove Beamer’s navigation-symbol template to stop it overlapping footnotes, or customize the footnote and footline areas if you need to keep the buttons.
- How to Enlarge Square Enumerate Labels in BeamerIn Beamer, enlarge square enumerate labels with the item projected font setting; the square badge generally scales with that font.
- Beamer or PowerPoint/LibreOffice Impress: Which Should You Use?Choose Beamer for reproducible, equation-heavy slides; choose PowerPoint or Impress for visual editing, collaboration, and flexible media.
- How to Make Beamer Objects Appear in Different PlacesUse Beamer overlay commands to change what appears, and TikZ overlay nodes when an object must occupy precise positions on different slides.
- How to Number Beamer Frames and Link to Appendix SlidesDistinguish Beamer frame numbers from PDF page numbers, exclude appendix slides from the main total, and add buttons linking to named slides.
- How to Show Figure Numbers in BeamerBeamer hides figure numbers in captions by default. Enable numbered captions with one template setting, then add a caption inside the figure environment.
- A Minimal Beamer Template for MiKTeX 2.9Use this minimal Beamer presentation template with MiKTeX 2.9, compile it with pdfLaTeX, and troubleshoot missing classes or themes.
- How to Use Beamer’s \visible with \cellcolorIn Beamer tables, \visible hides cell content but may not hide \cellcolor’s background; control the fill separately with an overlay-aware branch.
- Fix “beamertheme.sty not found” in TeX LiveFix “beamertheme.sty not found” by correcting the Beamer theme command, installing the missing TeX Live package, or checking your active TeX installation.
- Why Does `\begin{enumerate}[(a)]` Not Indent Items?The optional [(a)] syntax changes enumerate labels, not list indentation. Use enumitem's label and leftmargin options to control both.
- How to Make “Properties” Bold in a LaTeX ListUse \textbf{Properties} for a heading, or set enumitem’s label option to bold property names or numbers in an enumerate list.
- How to Fix the BibTeX Error “White Space in Argument”Fix BibTeX’s “White space in argument” error by locating the offending entry in the .aux file and correcting citation keys or bibliography filenames.
- How to Typeset the Bitcoin Symbol in LaTeXTypeset the Bitcoin sign in LaTeX with XeLaTeX or LuaLaTeX, fontspec, and a font that includes Unicode character U+20BF.
- How to Handle Blank Lines in a LaTeX tabular EnvironmentA blank line inside LaTeX’s tabular environment creates a paragraph break, not an empty row. Use row terminators or spacing commands instead.
- How to Bold Math Symbols in LaTeXUse \mathbf for upright Latin letters, \boldsymbol for bold math symbols, or the bm package for reliable bolding of Greek letters and operators.
- How to Change Line Spacing in a Shortstack-Like BoxUse a one-column tabular box instead of \shortstack, then adjust its row spacing with a local \arraystretch value or a row-specific gap.
- How to Place Two Images Side by Side in LaTeXPlace two images side by side in LaTeX with subcaption, set their widths to fit the line, and add individual or shared captions and labels.
- How to Annotate a Slope Triangle in a PGFPlots AxisDraw a slope triangle in a PGFPlots axis with axis-coordinate segments and labels for the run, rise, and calculated slope.
- How to Fix “TeX Capacity Exceeded: Input Stack Size=5000”The TeX input stack error usually signals recursive macro or file input, not a diagram that is merely too large. Find the loop and fix its cause.
- How to Get a Correct \hbar with Antykwa Toruńska in LuaLaTeXKeep Antykwa Toruńska for text and assign the h-bar symbol to a math font with a suitable glyph using unicode-math in LuaLaTeX.
- Which CV Templates Work Well with pdfLaTeX?ModernCV is a practical CV template for pdfLaTeX. See a complete starter example, setup tips, and alternatives for a simple, readable résumé.
- Fix an Extra `}` Error When Using a Custom Command in `\ul`Register your custom macro with soul using its number of mandatory arguments; this lets \ul parse the command and its argument correctly.
- Why Does an Arrow Disappear in a TikZ Draw Command?TikZ arrows can disappear when a path ends at a node center and the node covers the arrowhead. Use to or explicit shape anchors.
- How to Center and Capitalize Awesome-CV Section HeadingsRedefine Awesome-CV’s sectionstyle macro in the preamble to display section headings in uppercase and center them without changing other text.
- How to Add a Left Indent to Section Headings in LaTeXUse the titlesec package's left-spacing setting to indent section and subsection headings without changing the page margins or paragraph text.
- How to Add a Label to a Plot in PGFPlotsIn PGFPlots, label a curve with \addlegendentry or annotate a point with a TikZ node placed at an axis coordinate.
- How to Add a Border or Frame Around a Box in LaTeXUse \fbox for a simple LaTeX border, or frame a minipage for paragraphs; control padding and line thickness with \fboxsep and \fboxrule.
- How to Add Error Bars to a Bar Plot in PGFPlotsAdd vertical error bars to a PGFPlots bar chart with y dir=both and y explicit, then provide each bar’s value and uncertainty.
- How to Adjust the Space Between “Sincerely” and Your Name in scrlttr2Adjust the vertical gap between a letter closing and your name in KOMA-Script’s scrlttr2 class with the sigbeforevskip pseudolength.
- How to Use Adobe Garamond in LaTeX on LinuxUse Adobe Garamond OpenType fonts in LaTeX on Linux with XeLaTeX or LuaLaTeX, and check font naming, PDF output, and arXiv portability.
- How to Write Nested for Loops with algorithmicxNest loops in algorithmicx by placing one For block inside another and closing each block with its matching EndFor; algpseudocode handles indentation.
- How to Align Figures at the Top in BeamerAlign side-by-side Beamer figures with top-aligned columns, and fix apparent offsets caused by whitespace inside the image files.
- Can You Use align* Inside enumerate* in LaTeX?The reason align* fails inside enumitem’s enumerate* is that one is display math and the other an inline list. Use regular enumerate for equations.
- Can Beamer Break Frames Inside a Multicolumn Environment?Beamer cannot reliably break a slide inside a multicols layout. Use allowframebreaks for flowing text or create successive frames with columns.
- How to Add a Vertical Line to a TikZ PlotAdd a vertical line to a PGFPlots graph with a two-point coordinate plot, or draw it in axis coordinates for precise placement.
- How to Write Alternate Greek Symbols in LaTeXLaTeX has built-in math commands for alternate Greek letters such as \varepsilon, \vartheta, \varphi, and three other common variants.
- How to Automatically Size Parentheses Across Multiple LaTeX LinesPut a multiline expression in an aligned block inside one automatic delimiter pair; use fixed-size delimiters if the rows must stay separate.
- How to Write the Average Integral Symbol in LaTeXUse the esint package and its dashint command to typeset an average integral in LaTeX, with a complete example and an alternative.
- How to Make Biblatex Full Citations ClickableRedefine biblatex’s fullcite command with the bibhyperref format so the entire inline citation links to its bibliography entry when hyperref is loaded.
- How to Make Big Angle Brackets in LaTeXUse \langle and \rangle for angle brackets in LaTeX, then choose automatic sizing with \left and \right or controlled sizes with \bigl and \bigr.
- How to Change the Font Size in the LaTeX book ClassSet the book's document size with the 10pt, 11pt, or 12pt class option; use extbook for additional standard font sizes.
- How to Make a Colored Diagonal Table Cell in LaTeXUse TikZ to fill the two triangles of a table cell, draw a diagonal and border, and position labels for a clean colored split header.
- How to Convert a PDF Image to PNG for TikZTikZ does not convert PDF files to PNG. Keep vector quality by including the PDF, or rasterize a chosen page with pdftoppm and include the PNG.
- How to Convert UTF-8 Greek Letters to LaTeX SymbolsMap UTF-8 Greek characters such as α and Ω to LaTeX math commands, handle variant forms, and choose a safe workflow for pdfLaTeX or Unicode engines.
- How to Create a New Integral Symbol in LaTeXDefine a custom integral command by decorating \int inside \mathop, then control its bounds with \limits or \nolimits.
- How to Frame Cells in a LaTeX TableFrame LaTeX table cells with vertical bars and horizontal rules, or use \fbox to draw a compact box around one cell's contents.
- How to Get the Division Symbol with the physics PackageWith the physics package, the usual division command denotes divergence; save its original meaning before loading the package and use that alias.
- How to Add Vertical Space Between Rows or Tables in LaTeXUse \\[6pt] or booktabs’ \addlinespace for a gap between table rows; add vertical space outside tabular environments between separate tables.
- How to Change the Font Size in a LaTeX TableUse a scoped font-size command such as small before the tabular environment, and learn when custom sizes or spacing adjustments are appropriate.
- How to Fix Errors in LyXTo fix a LyX error, find the first actionable LaTeX error in the log, inspect its source line, then correct the LyX content or settings and recompile.
- How to Number a Bibliography but Keep Author–Year Citations in biblatexUse biblatex's separate citation and bibliography styles to keep author–year citations in the text while numbering bibliography entries, with a working example.
- How to Include a LaTeX Table in R MarkdownIn R Markdown, emit a LaTeX table with knitr::kable() and results='asis' for PDF output, or use a format-aware table for HTML and Word.
- How to Increase Line Spacing in IEEE ReferencesIn IEEEtran, increase gaps between bibliography entries with IEEEbibitemsep, or adjust wrapped-line leading locally without changing spacing throughout the paper.
- How to Format Integral Symbols in LaTeXUse LaTeX’s \int command for ordinary integrals, add bounds with subscripts and superscripts, and control their placement with \limits or \nolimits.
- How to Put Figures Side by Side in LaTeXUse the subcaption package and two subfigure blocks, each narrower than half the text width, to place separately captioned images side by side in LaTeX.
- How to Write Math Symbols in LaTeXLearn how to enter common mathematical symbols in LaTeX, choose the right package, and build a minimal example that compiles reliably.
- How to Fix LaTeX multirow Package ConflictsMost LaTeX multirow errors come from a missing package, xcolor option clashes, or table structure—not an inherent incompatibility. Diagnose them with a minimal example.
- How to Set a LaTeX Table Font to Exactly 10 ptSet a LaTeX table to exactly 10 pt with a local font-size declaration, or use class-relative commands such as small when an approximate size is enough.
- How to Typeset Expected Value in LaTeX Math ModeUse \mathbb{E}[X] in LaTeX math mode for expected value; learn the needed package, inline and display syntax, conditional notation, and common fixes.
- How to Adjust the Table of Contents in classicthesisAdjust classicthesis table-of-contents formatting with package hooks, add unnumbered entries correctly, and rebuild auxiliary files to refresh the result.
- Where to Put Page Breaks in a Set of FlashcardsPlace page breaks between complete flashcards, not inside boxed cards. Choose newpage or clearpage based on whether pending floats need printing.
- How to Write the Not-Independent Symbol in LaTeXUse the centernot package to place a slash across the double-perpendicular independence symbol, with a complete LaTeX example and spacing guidance.
- Why Does a PGFPlots Cycle List Produce No Colors?Define each PGFPlots cycle-list entry as a plot style, select the list by name, and use \addplot+ to preserve its colors when adding options.
- How to Set Line Colors in PGFPlotsSet one PGFPlots line with a draw color, or define a cycle list to assign repeatable colors and styles to multiple plotted series.
- How to Position Tick Scale Labels in pgfplotsPosition pgfplots’ tick scale multiplier with the x or y tick scale label style key, or move individual tick numbers with xticklabel pos and yticklabel pos.
- How to Draw a Standard Model Particle Chart in LaTeXUse TikZ to draw a compact Standard Model particle chart in LaTeX, grouping quarks and leptons by generation and separating gauge and Higgs bosons.
- How to Make Letters the Same Size in LaTeXLaTeX sizes letters according to math style and font. Match styles and alphabets first; scale individual glyphs only when necessary.
- How to Set a Colormap for Bars in PGFPlotsA PGFPlots colormap does not automatically recolor every bar in one ybar plot. Split bars into plots for distinct colors, or set one fill explicitly.
- How to Use TikZ with the Springer Nature LaTeX TemplateTikZ generally works with the Springer Nature sn-jnl class. Load it in the preamble, test a minimal drawing, and troubleshoot common errors.
- How to Make a LaTeX Table with Grouped Headers and a Total RowUse \multicolumn for grouped LaTeX headers, \cmidrule to mark their spans, and a final row of column sums for a clean total line.
- What Margins Should You Use for a B5 Thesis?For a B5 thesis, follow your university’s required margins first; otherwise allow extra space at the binding edge and verify the PDF page size.
- How to Fill the Region Between Two Lines in TikZUse PGFPlots’ fillbetween library to shade the area between named plot paths, with a complete example and notes on domains and intersections.
- What Are Esoteric Integral Symbols Used For?Learn what closed, multiple, surface, and average-integral symbols mean, when to use them, and how to typeset extended integral notation in LaTeX.
- Why Are Vector Images Rasterized in XeLaTeX PDFs?Keep figures sharp in XeLaTeX by including vector PDFs, converting SVG or EPS appropriately, and checking whether the final PDF contains bitmap images.