Math & Science ⇒ Having trouble using titlesec with math functions
-
- Posts: 10
- Joined: Fri Jul 31, 2020 6:11 pm
Having trouble using titlesec with math functions
I'm using class ARTICLE, ans packages ASMATH and TITLESEC. (this code example can be seen on page 12 of the redme.pdf in titlesec's documentation.
\newcommand{\secmark}{}
\newenvironment{advanced}
{\renewcommand{\secmark}{*}}
{..}
\titleformat{\section}
{..}
{\thesection\secmark\quad}{..}{..}
\begin{document}
\begin{advanced}
\section{one,two,three} %%%%%%%%%%%%%%% This is the First Math program example. Basics.
This formula $f(x) = x^2$ is an example.\\
\end{advanced}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 10
- Joined: Fri Jul 31, 2020 6:11 pm
Having trouble using titlesec with math functions
Here's theres:
%\titleformat{\section}
%{..}
%{\thesection\secmark\quad}
%{..}
%{..}
This is what I did to make it work:
\titleformat{\section}
{\normalsize}
{\thesection\secmark\quad}
{0pt}
{..}
{}