GeneralFlexible document structure

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
T303
Posts: 2
Joined: Fri Oct 18, 2013 8:46 am

Flexible document structure

Post by T303 »

Hi
this is my first post in the forum so please forgive me if i am posting in the wrong section ;)
My question is a bit hard to explain but i will try... Is there a way to have the structure a latex document more flexible in the following way:

Code: Select all

\chapter{This is a chapter}
\NewStructure{This should go one below} \label{OneBelow}
\NewStructure{This should go one below}
\NewStrucutre{This should go at the same level as {OneBelow}} 
In a report this would result in
Chapter
Section
Subsection
Section

The reason why i would like to do this is because I use \input{} to distribute my quite big document on several files. However, as I am not fully decided on the structure it can be tedious to change e.g. a chapter into a section. In the above example this should be possible by just changing in the first line chapter to section to end up with
Section
Subsection
Subsubsection
Subsection


Thanks in advance
Last edited by cgnieder on Thu Oct 24, 2013 11:11 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Flexible document structure

Post by cgnieder »

Hi T303,

Welcome to the LaTeX community.

You may be interested in the coseoul package: »The pack­age pro­vides “rel­a­tive” com­mands that may be used in place of \chap­ter, \sec­tion, etc.«

I also found this: https://github.com/mudd1/relsec

Best
site moderator & package author
Post Reply