Document · 1 file

Sample LaTeX File

LaTeX source for scientific and technical typesetting. This standalone document compiles with pdflatex, xelatex or lualatex.

LaTeX · 8.2 KB

LaTeX document

Standalone LaTeX source with sections, lists, a table and a code listing. Compile with pdflatex or xelatex.

CC0 · free for any use · Verified by an independent tool · Report a problem

sample.tex — first linesLaTeX
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\documentclass[
  english,
]{article}
\usepackage{xcolor}
\usepackage{amsmath,amssymb}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
\ifPDFTeX
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
  % xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}

File details

Size
8.2 KB (8,475 bytes)
MIME type
application/x-tex
SHA-256
e984280af678015fcbd514e34a13eabeb81cd271e72f8086d57928afe53a7da8
MD5
56d4b45427cb4bad9816b6ba035b3e24

Download from the command line

curl -L -o sample.tex https://files.samplefiles.com/document/tex/sample.tex

Or check the download in your browser with the checksum calculator.