Tag
Latex
- 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 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.
- 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.
- 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 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 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 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 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 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 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 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 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 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.
- 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 “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 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 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 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.
- 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 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 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.
- 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 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.
- 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 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.
- 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.
- 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 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 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 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 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 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.
- 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.
- 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.