7 · Tx · 418 questions
LaTeX & TikZ
Working solutions for tables, figures, bibliographies, TikZ and pgfplots.
latex 134tikz pgf 49pgfplots 48tikz 36tables 36enumitem 25beamer 23math mode 22macros 21latex errors 18windows 17miktex 16enumerate 15spacing 14amsmath 14graphics 13multicol 13lists 12errors 12bibliography 11fonts 11texlive 11cv 11packages 10positioning 10koma script 9biblatex 9templates 9equations 9luatex 8
Questions
- What Is \box255 in TeX?\box255 retrieves TeX box register 255. In an output routine, that register conventionally holds the completed page ready to be shipped.
- What Does \addplot+ Do in PGFPlots?In PGFPlots, \addplot+ retains the active cycle-list style and adds local options, while \addplot uses supplied options instead of that style.
- How to Convert LaTeX to HTML from the Windows Command PromptInstall TeX4ht in MiKTeX, run htlatex from Windows Command Prompt, and find the generated HTML and related files.
- How to Vertically Align Side-by-Side MinipagesAlign side-by-side LaTeX minipages at the top, center, or bottom with the optional position argument and a reliable top-alignment example.
- How to Add Space Below a Description Label in LaTeXUse enumitem’s nextline style to put description labels above their text, then add a small vertical space after each label.
- How to Set Vertical Spacing for Nested Itemize ListsUse enumitem’s level-specific settings to control space around and within each itemize level with topsep, itemsep, parsep, and partopsep.
- How to Vertically Align Rotated Text in a LaTeX TableVertically center rotated text in a LaTeX table with an m-column from array and rotatebox from graphicx; see a complete working example.
- How to Add Vertical Space Before a TikZ PictureAdd space before a TikZ picture with \par followed by \vspace{length}; use the starred form when the space must survive a page break.
- How to Fix “\oval, \circle, or \line Size Unavailable” in LaTeXThis LaTeX warning means the picture environment cannot draw a requested size or slope with its built-in commands; pict2e is a common fix.
- How to Fix Warnings with LuaLaTeX, enumitem, and Large FontsLarge fonts can outgrow enumitem's measured label space. Set the widest label and margins explicitly, and use the exact log warning to diagnose other causes.
- How to Fix an Undefined Control Sequence in LaTeXAn undefined control sequence means LaTeX does not recognize a command; check its spelling, required package, definition, and compiler setup.
- How to Fix “Undefined Control Sequence” at \printbibliographyThe command \printbibliography is provided by biblatex. Load the package, add your .bib file, and compile with the matching backend.
- Undefined Control Sequence \subfloat When Using subcaptionThe subcaption package does not define \subfloat. Replace it with a subfigure environment, or use subfig for existing \subfloat code.
- How to Put an Underbrace in a LaTeX MatrixPut \underbrace{...}_{...} directly inside a LaTeX matrix cell, and use \text for a readable word label beneath the brace.
- What Does “Underfull \hbox (badness 10000)” Mean in LaTeX?An underfull \hbox warning means TeX could not justify a line well. Learn why it appears in a parbox and how to fix it appropriately.
- Why Does LaTeX Report an Underfull \hbox in a Table?An underfull hbox is a spacing warning, not a table error. Find the affected paragraph or cell, then adjust its width or alignment.
- How Does the LaTeX \@for Loop Work?Learn the syntax of LaTeX's internal \@for loop, see a complete working example, and avoid common mistakes with commas and @.
- How to Fix an “Unrecognized Command” Error in LaTeXFind the command LaTeX does not recognize, then check its spelling, required package, compiler compatibility, and whether it is used in the right context.
- How to Remove an Unwanted Blank Page Before a LaTeX ReportA blank page in a LaTeX report usually comes from a page-break command, title-page setup, or openright chapter layout—not from Texmaker.
- How to Remove Extra Space After a LaTeX Section TitleExtra space after a LaTeX section title usually comes from spacing added by a custom command; find and remove it or set heading spacing consistently.
- How to Update a Custom Font for LuaLaTeX on WindowsRefresh LuaLaTeX’s font database after replacing a custom font on Windows, then select the installed font or load its file directly.
- How to Control URL Line Breaks and Add “Accessed” in LaTeXUse xurl to allow long bibliography URLs to break, and customize biblatex’s URL field format to put “Accessed:” before each URL.
- How to Use a Custom TikZ Shape as a Reusable Building BlockDefine a TikZ pic to reuse a custom drawing as a building block, or declare a node shape when you need anchors and node behavior.
- How to Use \blacktriangleright as an Itemize LabelLoad amssymb and enumitem, then set label=$\blacktriangleright$ globally with \setlist or locally on an itemize environment.
- How to Use One Column in a Two-Column LaTeX PaperIn a standard LaTeX two-column document, use \onecolumn and \twocolumn to switch layouts; both switches start a new page, so plan local changes accordingly.
- Fix “cp1255.def not found” in LyX on WindowsFix LyX’s cp1255.def error by switching the document to UTF-8, using a Hebrew-capable TeX engine, or checking your TeX packages.
- How to Use \only in a Beamer PresentationUse Beamer’s \only<...>{...} command to show content on chosen overlays; unlike \uncover, it removes hidden content and its space.
- How to Plot a Parametric Curve in PGFPlotsPlot a two-dimensional parametric curve in PGFPlots by sampling a parameter and supplying its x- and y-coordinate expressions as a pair.
- How to Position a Starred tcolorboxUse \begin{tcolorbox*}[options] for a starred box; set its width and align the box separately from the text inside it.
- How to Display Confidence Intervals with siunitxUse siunitx to format confidence-interval endpoints consistently, label the confidence level, and distinguish intervals from measurement uncertainty notation.
- How to Combine TikZ Orthogonal Edges with Coordinate CalculationsCombine TikZ’s -| or |- orthogonal path operators with coordinates from the calc library, including a worked midpoint example and common syntax fixes.
- How to Autosize TikZ Mindmap Nodes to Fit Their TextLet TikZ mindmap nodes size themselves from their text, remove fixed minimum dimensions, and control wrapping with text width when needed.
- How to Move Text Higher in TikZMove a TikZ label slightly upward with the node option yshift, or position it above a path using above and adjust the gap.
- How to Set Axis Parameters in a TikZ/PGFPlots FigureSet plot limits, labels, ticks, grid, and size with key-value options in PGFPlots’ axis environment, not the outer tikzpicture options.
- How to Typeset a Time of Day or Duration with siunitxUse datetime2 for clock readings such as 13:05, and siunitx for durations expressed as quantities of hours, minutes, and seconds.
- How to Fix “tlmgr Cannot Set Up TLPDB” on UbuntuOn Ubuntu, “tlmgr cannot setup TLPDB” often means tlmgr is being used with apt-managed TeX Live; identify the install and use its package manager.
- How to Add a Numbered BibLaTeX Bibliography to the TOCWith BibLaTeX, use \printbibliography[heading=bibnumbered] to add a numbered bibliography heading and its entry to the table of contents.
- How to Reduce Space Around a LaTeX wrapfigureReduce vertical space around a LaTeX wrapfigure with \intextsep, adjust horizontal clearance with \columnsep, and check for paragraph or image padding.
- Why Isn’t topsep Working for itemize in a longtable?Set itemize spacing in a longtable with enumitem, and distinguish list glue from row spacing, cell padding, and space at cell boundaries.
- How to Draw a Transformer in CircuitikZDraw a four-terminal transformer in CircuitikZ by placing a transformer node, connecting its A1, A2, B1, and B2 anchors, and adding labels.
- How to Use \item in a LaTeX trivlistIn LaTeX, use \item inside trivlist to begin each entry; add an optional bracketed label for a custom heading or leave it empty.
- How to Troubleshoot KOMA-Script and moderncvTroubleshoot moderncv and KOMA-Script by choosing one CV class, compiling a minimal example, and tracing the first error in the log.
- How to Put Two Minipages Inside a LaTeX CommandDefine a two-argument LaTeX command with one minipage per argument, using less than half the line width for each box.
- How to Fix Ugly Spacing Around f in Math ModeFor natural spacing around f in LaTeX, distinguish an italic function symbol from an operator and use the right notation instead of extra spaces.
- How to Fix “Unable to Load Picture or PDF File” in XeLaTeXXeLaTeX can include PNG, JPEG, and PDF files. Check the filename, path, format, TeXstudio compiler, and PDF validity in this order.
- How to Fix “Undefined Control Sequence” at \end{align*}Add the amsmath package and check that align* is properly matched and used as display math, not inside dollar signs.
- How to Fix “Undefined Control Sequence” in an IEEE Overleaf TemplateFix an undefined control sequence in an Overleaf IEEEtran project by locating the unknown command and checking its spelling, package, and syntax.
- How to Position the Signature in KOMA-Script scrlttr2Use KOMA-Script's sigindent pseudolength to move the closing and signature block horizontally, and sigbeforevskip to adjust its vertical spacing.
- How to Adjust TikZ Node Distance for Individual NodesSet a different gap for each TikZ node by specifying a length in keys such as below=8mm of A or right=12mm of B.
- How to Draw a TikZ Arrow with Heads at Both EndsDraw arrowheads at both ends of a TikZ line with the <-> option, or use arrows.meta to choose and customize the arrowhead style.
- How to Set the Background Color of a Multilayer TikZ NodeSet a TikZ node’s background with fill; for a rectangle split node, use rectangle split part fill to color each part separately.
- How to Draw a Battery Symbol in TikZ/CircuiTikZDraw a battery symbol with CircuiTikZ using to[battery] inside a circuitikz environment, then orient it and add a voltage label.
- How to Color Different Segments of a TikZ EdgeDraw each edge segment separately with its own TikZ color option, or use per-edge styles in a graph path, to control colors reliably.
- How to Draw a TikZ Line Thinner Than 0.1 mmTikZ accepts physical dimensions for stroke width: set line width=0.05mm, or use ultra thin, and check visibility at final output size.
- How to Draw an Edge From a TikZ Node With No Target NodeDraw a dangling TikZ edge by starting at a node anchor and ending the path at a relative coordinate, such as ++(1,0).
- How to Run Sweave from a Windows Batch FileUse a Windows batch file to run Sweave with Rscript, then compile its generated .tex file with MiKTeX; includes paths and error checks.
- How to Make a Symmetric Logarithmic Axis in PGFPlotsPGFPlots has no built-in symlog axis mode, but you can transform x coordinates and label ticks with their original values.
- How to Prevent Text Overflow in a LaTeX \multirow CellStop long text from overflowing a LaTeX multirow cell by giving its contents a wrapping width and making sure the spanned rows are tall enough.
- How to Fix a LaTeX Table of Contents That Is Not WorkingFix a LaTeX table of contents that is missing, stale, or not clickable: check hyperref, compile twice, and handle starred sections correctly.
- How to Reveal Multiple Table Rows in BeamerReveal several Beamer table rows together by applying the same \uncover overlay specification to every cell in those rows.
- How to Put a Title on the Left Side of a tcolorboxAlign a tcolorbox title at the upper left, or add a rotated label to its left edge with an enhanced skin and TikZ overlay.
- How to Change TeX Live’s Package Directory on WindowsSet TeX Live’s TEXMFHOME variable to use a custom Windows package folder, then install packages there or verify manually added files.
- Texmaker Shows the Same Old PDF: How to Fix ItFix Texmaker when the PDF does not update by checking compilation errors, the output path, viewer refresh, and stale auxiliary files.
- How to Fix “Misplaced Alignment” Errors in TeXmakerFix LaTeX’s “Misplaced alignment tab character &” error by finding an ampersand outside an alignment environment or escaping it as \&.
- How to Fix “pdflatex Not Found” in TeXShop on El CapitanFix TeXShop’s “pdflatex not found” error on El Capitan by checking your TeX installation and setting the correct executable search path.
- How to Automate the LaTeX–Biber Compilation Sequence in TeXstudioConfigure TeXstudio to run LaTeX, Biber, and LaTeX again automatically so citations and the bibliography are updated in one build.
- How to Add Text Before an Itemize List with enumitemAdd a heading before an itemize list by writing it before the environment, or use enumitem’s before option to attach it to the list.
- How to Add Text Between the Bibliography Title and Entries with BibTeXWith traditional BibTeX, patch thebibliography using etoolbox and add an empty-label item to place text below the heading and before entries.
- Why Is Text Dropped at the Start of a Listings Block?If text disappears at the start of a LaTeX listings block, put a line break after \begin{lstlisting} and check the closing delimiter.
- How to Align Two Text Blocks Side by Side in LaTeXPlace independent text blocks at the same level in LaTeX with top-aligned minipages; use multicols instead when text should flow between columns.
- Why Does LaTeX Say \bfseries Is Invalid in Math Mode?The \bfseries error usually means a text command, often a citation, was processed inside math mode; check delimiters and move it outside.
- How to Create a Single-Item List with enumitemDefine a reusable one-item numbered list with enumitem, control its label and spacing, and understand why LaTeX does not enforce exactly one item.
- How to Distinguish Prefixed and Unprefixed Units in siunitxUse separate siunitx commands for a unit and its prefix, such as \metre and \milli\metre, to distinguish their rendered symbols.
- How to Fix siunitx “Invalid numerical input”Fix siunitx “Invalid numerical input” by finding the cell its S column is parsing, correcting the number format, or marking text cells explicitly.
- How to Use Xfig Graphics and LaTeX TogetherUse Xfig's combined graphic-and-LaTeX export to keep labels in TeX; understand the limits when importing arbitrary TeX into editable Xfig objects.
- How to Crop a PGFPlots Figure with the Standalone ClassUse the standalone class to crop a PGFPlots figure to its TikZ bounding box, then control outer margins and axis whitespace with the right options.
- How to Put One Figure Under Another in LaTeXPut two images one above the other in LaTeX by placing consecutive includegraphics commands in one figure float, with a paragraph break between them.
- How to Fix the “Subfigure Undefined” Error in LaTeXFix LaTeX subfigure errors by choosing the package that matches your syntax. See a compilable example using the modern subcaption package.
- Why Does scrartcl Have Strange Spacing with fancyhdr?In scrartcl, fancyhdr can expose a mismatch between header height and KOMA-Script’s type area. Check headheight and headsep, or use scrlayer-scrpage.
- How to Set a Header with scrlayer-scrpageLearn to set static or section-based headers with scrlayer-scrpage, place page numbers, add a header rule, and handle chapter-opening pages.
- How to Define a Command for Italic Text in LaTeXDefine an italic-text command with \newcommand and the right argument count; use a math-mode command instead when formatting symbols.
- Set a Hyperref Link’s Highlight Style to NoneSet hyperref’s pdfhighlight option to /N to disable the visual highlight shown when a PDF link is activated, without removing the link.
- Why Doesn’t \setcounter{enumi} Work with enumitem’s resume?enumitem’s resume option restores the previous list counter, which can overwrite an earlier \setcounter. Set the counter after the list begins.
- How to Set the Width of a LaTeX TabularUse tabularx to set a table to the current column width and wrap text, or tabular* to stretch spacing without changing cell contents.
- How to Fix a Shell-Escape Error with PGFPlotsA PGFPlots shell-escape error usually means your document is launching an external command. Find the trigger, then enable shell escape or remove it.
- How Do You Type Quotation Marks in LaTeX?In LaTeX, type double quotes as two backticks and two apostrophes, or use csquotes for nested and language-aware quotations.
- How to Make LaTeX Captions Ragged RightUse the caption package’s raggedright justification option; disable single-line centering if every caption should align at the left.
- How to Reduce Space After a Title Once in LaTeXUse a local negative vertical skip after \maketitle or a section heading to tighten the gap once, without changing spacing throughout the document.
- How to Reformat a Title in europecvIn europecv, style a section heading by formatting the argument to \ecvsection; for a separate CV title, add a centered heading inside the environment.
- How to Add Remarks with the LaTeX changes PackageUse the changes package's comment command for review notes, and an amsthm remark environment for remarks that belong in the final document.
- How to Remove the Blank Line Between Items in twentysecondcvRemove excess space between twentysecondcv entries by adjusting the list's itemsep, then check for blank paragraphs or conditional line breaks.
- How to Remove Photo Padding in moderncv ClassicIn moderncv's classic style, remove the gap between a portrait and its frame with fboxsep; set the frame width to zero separately to remove the border.
- How to Remove Itemize Spacing in a LaTeX TableRemove space above and below an itemize list in a LaTeX table with enumitem, and distinguish list spacing from the table's own row padding.
- How to Remove Space Around an Itemize List in a TableUse enumitem’s nosep option inside a paragraph-type table column to remove list spacing; adjust the table row strut separately if a small gap remains.
- How to Replace Repeated Text with a LaTeX MacroUse a LaTeX macro to manage repeated text, or use your editor’s find-and-replace feature to change existing literal phrases in the source.
- How Do I Reset a LaTeX \renewcommand?To undo a LaTeX \renewcommand, limit the redefinition to a group or save the original definition and restore it explicitly when you need it later.
- How to Fix a pdfTeX Link-Nesting Error with \resizeboxA pdfTeX link-nesting error near \end{document} often comes from a hyperlink inside \resizebox; locate the link and use a safe workaround.
- How to Use the Same Color with Different Bar Patterns in PGFPlotsUse TikZ’s patterns library and set pattern and pattern color on each PGFPlots bar series to distinguish bars without changing their color.
- How to Put an Image Before the References in LaTeXKeep a LaTeX image before your references by placing its figure earlier in the source and adding a float barrier at the bibliography boundary.
- How to Use Commands in PyLaTeXUse PyLaTeX's Command class for LaTeX commands, and add custom macro definitions to the preamble with NoEscape.
- How to Convert a LaTeX File to PDF with Python on LinuxOn Ubuntu, install a TeX engine and call latexmk from Python with subprocess.run; handle paths, exit codes, logs, and generated PDFs safely.
- Why Does CodeCogs Say “Invalid Equation” When StackEdit Accepts It?CodeCogs and StackEdit may use different math parsers. Check delimiters, environments, and commands, then reduce the expression to find the incompatibility.
- How to Fix a “Misplaced \omit” Error in a Generated LaTeX TableA “Misplaced \omit” error usually means \multicolumn is not first in its table cell. Inspect the generated LaTeX and correct the cell or row structure.
- How to Fix “Missing } Inserted” in an align* EnvironmentLearn why LaTeX reports “Missing } inserted” in align*, how to find the real cause, and how to fix braces and alignment syntax.
- How to Fix “The Control Sequence Was Never Defined” in tabularxThis LaTeX message means a command is undefined. Find the command in the log, then check spelling, package loading, and tabularx syntax.
- Fix “Undefined Control Sequence \includegraphics” in TeXstudioThe error usually means graphicx was not loaded or TeXstudio is compiling a different file or TeX installation. Add the package and check the build log.
- How to Fix “Undefined Control Sequence” Errors in LaTeX TablesFix an undefined control sequence in a LaTeX table by locating the command, checking its spelling, and loading the package that defines it.
- How to Use xtick, xticklabels, and extra x ticks in PGFPlotsUse xtick and xticklabels to control ordinary x-axis ticks, and extra x ticks with extra x tick labels to add separately positioned ticks in PGFPlots.
- Why Are PGFPlots ybar Patterns Not Showing?Make PGFPlots bar patterns visible by loading TikZ’s patterns library, setting a pattern and pattern color, and checking for conflicting fill styles.
- How to Put a Table on a New Landscape Page in a Two-Column PaperFlush pending floats, switch temporarily to one-column mode, and use pdflscape with a nonfloating captioned table to create a dedicated rotated page.
- How to Place Text Between Two Pictures in LaTeXPlace text between two LaTeX images by writing the image, text, and second image in sequence; use a figure or tabular layout to control placement.
- How to Combine skip coords and each nth point in PGFPlotsCombine PGFPlots’ skip coords between index and each nth point options to omit a data range and thin the remaining plotted coordinates.
- How to Use Plus and Minus Superscripts in a LaTeX bmatrixUse ^{+} and ^{-} for plus and minus superscripts in bmatrix entries; load amsmath and see a complete, compilable example.
- How to Use Greek Letters with \polyset in LaTeXLearn what \polyset does in the polynom package, how to declare a polynomial variable, and how to handle Greek symbols safely.
- How to Position a LaTeX MinipageSet a minipage’s vertical alignment with its optional position argument, then control its width and horizontal placement with standard LaTeX spacing.
- How to Position a tcolorbox Inside an Itemize ListPlace a tcolorbox after \item and set width=\linewidth to fit the list’s text area; adjust vertical skips and inner padding separately.
- How to Prevent Text from Overflowing in LaTeXPrevent LaTeX text overflow by diagnosing overfull boxes, allowing breaks in long tokens and URLs, and adjusting paragraph or table layout.
- How to Bend Arrows in XY-picUse XY-pic’s @/^/ and @/_/ modifiers to bend arrows, control the bend size, and place labels in a minimal compilable LaTeX example.
- How to Highlight Parts of a Listing in BeamerHighlight code in a Beamer listing by making its frame fragile and using listings escape delimiters to apply Beamer overlays to selected text.
- How to Fix Problems with enumerate and compactenumFix enumerate and compactenum issues by choosing the right package, using its label syntax, and setting compact spacing with enumitem or paralist.
- How to Fit a Table into One Column in a Two-Column DocumentFit a table into one column by sizing it to the column width, wrapping long text with tabularx, and choosing table or table* correctly.
- How to Fix an Overfull \hbox Warning in eqnarray*An overfull \hbox warning in eqnarray* means a displayed line is wider than the available measure. Find the long part and break it with amsmath's align*.
- How to Fix Overlapping Numbers and Titles in a LaTeX Table of ContentsFix LaTeX table-of-contents entries that run together by widening the number area, rebuilding the document, and checking custom formatting.
- Overleaf: How to Download the .bbl FileDownload an Overleaf .bbl file from Logs and output files, and fix missing files by compiling the bibliography correctly.
- How to Define and Typeset Your Own Function in LaTeXDefine a mathematical function with standard notation, or create a reusable LaTeX command that typesets its name and input with correct spacing.
- Fix the LaTeX Unicode Character ≤ ErrorThe ≤ error usually means pdfLaTeX found a literal Unicode character it cannot map. Replace it with \leq in math mode.
- Why Does mathtools Hide Parts of Appendix Equation Numbers?Use mathtools showonlyrefs=false to restore all appendix equation numbers, and check section-based numbering if their format is still malformed.
- How to Fix “Package pgf Error: No Shape Named … Is Known”A TikZ “No shape named ... is known” error usually means a coordinate refers to an undefined node. Find the bad reference, check names, and repair path syntax.
- Can You Use a Page-Breaking Longtable in Multicolumn?A longtable cannot break across columns inside multicol. End the multicol environment, place the table in one-column layout, then resume columns.
- How to Put Page Numbers on the Left and Right Corners in LaTeXUse fancyhdr’s even/odd page fields to put page numbers on the outer corners: right on odd pages and left on even pages, including two-column documents.
- How to Draw Pascal’s Triangle in TikZGenerate Pascal’s triangle in TikZ with nested loops and PGF math. This complete example computes coefficients and centers each row automatically.
- Why Is the PDF Not Updating in TeXstudio?When a PDF seems stale in TeXstudio, verify that XeLaTeX rebuilt the file you are viewing, then refresh or reopen the correct PDF.
- What Does “PDF inclusion: invalid other resource” Mean in pdfLaTeX?This pdfLaTeX warning means an included PDF has a resource entry of an unexpected type. Find the file, check the output, and repair it.
- How to Fix “pdfTeX Cannot Open Type 1 Font File”Fix pdfTeX's “cannot open Type 1 font file” error by finding the missing PFB font, installing its package, and refreshing or enabling its font map.
- How to Make a PGFPlots Contour Plot from Matrix DataPlot matrix data as a PGFPlots color map by supplying x, y, and z values, setting mesh/rows, and adding contour levels.
- How to Use \pgfmathsetmacro in a TikZ \foreach LoopUse \pgfmathsetmacro inside a braced TikZ foreach body, and account for loop scope if you need its result after the loop.
- How to Set the Sampling Step Size in PGFPlotsPGFPlots has no direct step-size key for function plots; calculate the sample count from the domain length and desired spacing.
- How to Make a Broken Y-Axis in PGFPlotsCreate a broken y-axis in PGFPlots by stacking two aligned axes with different y limits, matching x limits, and a visible gap.
- How to Align Histogram x-Ticks to the Left of Each Bin in PGFPlotsUse PGFPlots' ybar interval style and place xtick values at bin boundaries to align x-axis ticks with the left edges of histogram bins.
- How to Set a PGFPlots Search Path for Data FilesUse PGFPlots’ table/search path key to find data files in a directory, rather than graphicx’s graphicspath, which is for images.
- How to Make a PGFPlots Function Touch the Plot EdgesSet explicit PGFPlots axis limits and match the function domain to them to draw a curve up to the plot edges.
- Why Are Some PGFPlots Histogram Series Not Showing?If PGFPlots shows only one histogram series, overlapping opaque bars are often hiding the others; use shared bins and transparent, distinct fills.
- How to Write Square Brackets in a pgfplots Axis LabelWrite square brackets in a pgfplots xlabel or ylabel by enclosing the entire label value in braces, such as xlabel={Time [s]}.
- How to Change the Anchor of a TikZ or PGFPlots PinSet the anchor of an individual TikZ or PGFPlots pin with per-pin options, or style every pin consistently; includes a compilable example.
- How to Make the x-Axis Smaller in PGFPlotsMake a PGFPlots x-axis physically narrower with the width option, and use scale only axis to control whether labels count toward that width.
- How to Create a Numbered Example Environment in LaTeXCreate numbered examples in LaTeX with amsthm’s newtheorem command, optionally reset numbering by section, and cross-reference examples by label.
- How to Insert Red XXX Placeholders with a LaTeX CommandDefine a reusable LaTeX command with xcolor to insert one or more red XXX placeholders, then use the command wherever needed.
- How to Define a LaTeX Command for a Ket-BraDefine a reusable LaTeX ket-bra command for the Dirac outer product, with a minimal compilable example, spacing guidance, and a scalable-delimiter variant.
- How Can You Define a LaTeX Command with a Variable Number of Arguments?LaTeX \newcommand takes a fixed number of arguments; represent variable-length input as a list or parse repeated groups with a clear terminator.
- How to Make Theorem Numbering Start at 0 in LaTeXUse \setcounter after defining the theorem environment: setting it to -1 makes the first theorem number 0.
- How to Fix “No PDF File Found” in TeXstudioFix TeXstudio’s “No PDF file found” message by checking the compiler log, output directory, MiKTeX installation, and PDF viewer settings.
- How to Make Emacs and AUCTeX Use MiKTeX on WindowsAdd MiKTeX’s binary folder to Windows PATH, verify that pdflatex is found, and select PDFLaTeX in AUCTeX to compile from Emacs.
- How to Make a Full-Width Abstract in KOMA-ScriptUse KOMA-Script's two-column mode and place the title and abstract in a full-width \twocolumn block before the paper text.
- Why \operatorname Does Not Render Polish Letters in LaTeXPolish letters are text glyphs, not standard math symbols. Use \text{ł} with a Polish-capable text font, and add \mathop for operator spacing.
- How to Show or Hide Optional Text in LaTeXUse a LaTeX Boolean switch to show or hide optional text, set its default state, and change the setting temporarily in a group.
- How to Put OrCAD/PSpice Schematics in LaTeXExport an OrCAD/PSpice schematic as a PDF and include it with graphicx, or redraw it in CircuitikZ when editable LaTeX artwork is needed.
- How to Install a Minimal TeX Live Setup for CIInstall TeX Live's basic scheme without documentation or sources, then use tlmgr to add only the packages your CI documents need.
- How to Fix “Mismatched LaTeX Support Files Detected”This LaTeX error usually means the format and expl3 support files come from different versions. Find the conflicting files, update, and rebuild formats.
- How to Fix “Misplaced Alignment Tab Character &” in LaTeXThe LaTeX error “Misplaced alignment tab character &” usually means an ampersand is being read as a column separator; write \& for a literal ampersand.
- How to Fix a Misplaced Figure in LaTeXA LaTeX figure may move because figures are floats. Learn how [htbp], FloatBarrier, and [H] affect placement and when to use each.
- How to Fix the LaTeX Error “Missing $ Inserted”Fix LaTeX’s “Missing $ inserted” error by locating an underscore or other math-only command used in text, filenames, or paths.
- How to Fix “Missing $ Inserted” at \end{align}A “Missing $ inserted” error at \end{align} usually points to math delimiters or syntax earlier; check these causes and test a minimal amsmath example.
- How to Fix “Missing Number, Treated as Zero” with \multirowThe error usually means * was placed where \multirow expects a row count. Put * in its width argument, as in \multirow{2}{*}{Text}.
- How to Combine PGFPlots with One Legend and Rotate ThemArrange multiple PGFPlots panels with one shared legend, then rotate the complete graphic using graphicx’s rotatebox command.
- How to Center Two Columns with the LaTeX multicol PackageCenter text within two multicol columns with local LaTeX declarations, or use a table-like layout when you need a narrower centered block.
- How to Use the multienum Package Inside enumerateNest the multienum package’s multienumerate environment inside an enumerate item, and use \mitemxx to place two entries in each row.
- How to Create Multiline Curly Braces in LaTeXCreate multiline curly braces in LaTeX with \left\{, an aligned or cases environment, and the invisible delimiter \right..
- How to Highlight Multiline MATLAB Comments with ListingsConfigure LaTeX listings to highlight MATLAB block comments by adding the %{ and %} delimiters while preserving ordinary percent-sign comments.
- How to Put Multiple Columns in a CV with LaTeXUse LaTeX’s multicol package to flow CV content into columns, or use minipages when separate sections must stay aligned side by side.
- How to Use Multiple Relative Positions in TikZUse TikZ’s positioning library to chain node placements, combine directions, control distances, and position nodes relative to multiple points.
- How to Make a LaTeX Table Cell Span a Variable Number of RowsUse \multirow with a row count supplied for each group. Store changing counts in macros when generating tables programmatically.
- How to Typeset Multivariate Polynomial Long Division in LaTeXTypeset multivariate polynomial long division in LaTeX with an aligned array, and see why the monomial order must be stated for the result to be unambiguous.
- How to Use a Font in the Current Directory with luaotfloadLoad a local font in LuaLaTeX with fontspec by specifying its filename or a directory path; no luaotfload database update is usually needed.
- Fix LyX’s “Directory Path Cannot Contain Spaces” PDF ErrorFix LyX’s PDF export path error on Windows by moving the document folder to a location without spaces, then update LyX or inspect the export log if it persists.
- Fix “Control sequence \not= already defined” in MacTeX 2019Find which package defines \not= twice, isolate the conflict with a minimal file, and fix mismatched or incompatible MacTeX math packages.
- How to Make a TikZ Picture a SubfigurePut each TikZ drawing inside a subfigure environment from the subcaption package to give panels individual captions and references.
- How to Change Cell Width in tikz-cdSet a tikz-cd cell's minimum width with a per-cell node option such as |[minimum width=4cm]|; use column sep to adjust gaps.
- How to Add One Package to MiKTeX on WindowsInstall a package through MiKTeX Console when possible; for an unavailable package, add its files to a registered local TeX tree.
- How to Fix List Margins with enumitemFix enumerate indentation with enumitem by setting leftmargin, labelsep, and labelwidth; distinguish list indentation from the document's page margins.
- How Should You Space Quantifiers in LaTeX?For readable quantifiers in LaTeX, keep each symbol next to its variable, use a thin space between clauses, and let relations add their own spacing.
- Why Is Fraktur g Not Showing in My LaTeX Resume?Use \mathfrak{g} inside math mode and load amsfonts or amssymb; then check the resume template for font or compiler conflicts.
- How to Use wrapfig with mdframed in LaTeXLearn why wrapfig cannot normally be placed inside mdframed and how to create reliable framed, side-by-side layouts instead.
- What Do “Bend Left” and “Bend Right” Mean in TikZ?In TikZ, bend left and bend right curve a to or edge path relative to its direction; learn the default angle, syntax, and a compilable example.
- How to Download and Install the memoir Class in MiKTeXInstall the memoir LaTeX class in MiKTeX through MiKTeX Console, or download its distribution from CTAN and verify it with a test file.
- How to Set a 13pt Font in the Memoir ClassThe memoir class does not provide a 13pt class option. Use the fontsize package to set 13pt body text, with a suitable baseline skip.
- How to Fix MiKTeX 2.9 Installation Problems on Windows 8.1Diagnose MiKTeX 2.9 installation failures on Windows 8.1 by checking installer age, architecture, permissions, network access, and setup logs.
- Fix MiKTeX 2.9 “Windows API error 2” on Windows 8.1Windows API error 2 means a requested file was not found. Check MiKTeX’s install log, verify the installer, and avoid relying on obsolete ProTeXt media.
- How to Fix MiKTeX’s “Too Many Open Files” Installation ErrorThe MiKTeX “Too many open files” error usually means the installer hit an operating-system file-handle limit. Diagnose it by platform and check logs.
- How to Put Text on Both Sides of a Line in LaTeXUse \hfill between two text fragments to align one at the left and one at the right of the same line in LaTeX.
- How to Fix the LaTeX Warning “Citation Undefined”Fix “Citation undefined” by checking citation keys and bibliography setup, then running LaTeX and BibTeX or Biber in the correct order.
- How to Fix “Empty thebibliography” in LaTeXThis warning means LaTeX found a bibliography environment with no entries. Add references, use \nocite appropriately, or remove the empty list.
- How to Fix “There Were Undefined References” in LaTeXLearn what LaTeX's undefined-references warning means, how to resolve labels and citations, and which compile sequence to use with BibTeX or Biber.
- How to Use LaTeX Math and Tables in MarkdownMarkdown and LaTeX can work together, but support depends on the renderer. Use pipe tables in Markdown and tabular environments in LaTeX.
- How to Run latexdiff from TeXstudioRun latexdiff from TeXstudio by adding a user command that compares two TeX files and writes the result to a separate diff file.
- How to Control the Layout of Bar Charts in LaTeXUse PGFPlots to arrange bars as grouped or stacked series, control spacing and labels, and place multiple bar charts side by side with groupplots.
- How to Align Text on the Same Line in Two LaTeX ColumnsThe multicol package balances continuous text, so column lines may not align. Use a table or paired boxes to align corresponding entries.
- How to Use LaTeX Macros in LuaLaTeX’s \directluaLearn how TeX expands macros in \directlua, how to pass their values safely to Lua, and how Lua can generate TeX commands.
- How to Fix Romanian Diacritics in a pdfLaTeX DocumentUse UTF-8 input, T1 font encoding, Romanian babel, and a font with Romanian glyphs; add cmap when PDF text copies incorrectly in pdfLaTeX.
- How to Put an Itemized List Inside a Paragraph in LaTeXCreate an inline itemized list in LaTeX with enumitem’s itemize* environment, including labels, spacing, punctuation, and a complete example.
- How to Render LaTeX as HTML with JavaScriptRender LaTeX-style math in a web page with JavaScript using MathJax or KaTeX, including an example for typesetting content added dynamically.
- How to Draw a Wire Kink Over Vertical Wires in CircuitikZDraw a wire crossing over vertical wires in CircuitikZ by replacing each crossing with an arc and masking the wire underneath.
- KOMA-Script scrbook: How to Remove the Period After a Part NumberRedefine KOMA-Script’s \partformat to omit the trailing dot after the part number, or use numbers=noenddot for a broader numbering change.
- How to Fix PGFPlots Out-of-Memory Errors with Large Data FilesLearn why large PGFPlots tables exhaust TeX memory, how to reduce the data, and when externalization or engine settings can help.
- How to Fix LaTeX “File .sty Not Found” ErrorsFix LaTeX “file .sty not found” errors by identifying the missing package, installing it in the active TeX distribution, or locating a custom file.
- How to Fix a LaTeX Error at \begin{paracol}Fix errors at \begin{paracol} by loading the paracol package, giving the environment its required column count, and matching its end tag.
- How to Fix “\textcurrency Unavailable in Encoding T1”Fix this LaTeX error by loading textcomp, which provides \textcurrency through the TS1 symbol encoding; use a currency-specific symbol when needed.
- How to Fix “LaTeX Error: Environment tikzpicture Undefined”Fix the LaTeX “tikzpicture undefined” error by loading TikZ in the preamble, checking the environment placement, and installing PGF if needed.
- How to Troubleshoot LaTeX Errors with moderncvDiagnose moderncv errors by checking the first log message, compiling a minimal example, matching font settings to your engine, and fixing long lines.
- Fix “\RequirePackage or \LoadClass in Options Section” and “article.cls not found”Learn why LaTeX reports these class-loading errors, how to defer package or class loading, and how to diagnose a missing article.cls.
- Why Do LaTeX Hyphenation Methods Give Different Breaks?LaTeX’s \- marks a break at one occurrence, while \hyphenation defines word-level break points that can override automatic patterns.
- How to Install LaTeX with MiKTeX and TeXmakerInstall a LaTeX distribution such as MiKTeX, add the TeXmaker editor, and compile a test document to check that both are configured correctly.
- How to Change Equation Numbering Locally in LaTeXUse amsmath's \tag for a one-off equation number, or locally redefine \theequation to change the displayed format for a group.
- How to Use LaTeX Macros in MarkdownLaTeX macros can be used in Markdown only when its math renderer supports them; define macros in that renderer's configuration for portability.
- How to Omit Icons in Moderncv’s Casual StyleRemove contact icons from moderncv’s casual style by redefining its symbol commands as empty, while keeping the contact details in your header.
- How to Change the Title Width in moderncv ClassicIn moderncv classic, set a specific width for the title by placing its text in a parbox; adjust the header separately if needed.
- Which LaTeX Package Generates QR Codes?Use the LaTeX qrcode package and its \qrcode command to encode text or a URL directly in a document, with adjustable size and error correction.
- How to Modify a LaTeX Resume TemplateModify a LaTeX resume by editing its main source file, preserving template commands, and testing each layout change with the required compiler.
- How to Change Numbering in a LaTeX SublistUse LaTeX's enumitem package to choose sublist labels such as (a), i), or 1.1, and control how nested items appear in references.
- How to Generate and Scale a LaTeX TableGenerate a LaTeX table with tabular and booktabs, then fit it to the page using tabularx or resizebox when needed.
- How to Color LaTeX Table Cells Based on a Number’s SignUse xcolor and PGF to test each numeric table value and apply different cell and text colors for negative, positive, and zero values.
- How to Plot Inverse Hyperbolic Functions in PGFPlotsPlot inverse hyperbolic functions in PGFPlots by declaring them with logarithm and square-root formulas, and restricting each plot to its domain.
- 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 \ulRegister 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.