Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
garethbilaney committed Sep 21, 2023
1 parent 0d72657 commit ef24a58
Show file tree
Hide file tree
Showing 16 changed files with 930 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions src/content/blog/cs/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: false
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
62 changes: 62 additions & 0 deletions src/content/blog/da/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: false
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
62 changes: 62 additions & 0 deletions src/content/blog/de/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: false
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
62 changes: 62 additions & 0 deletions src/content/blog/en/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: true
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
62 changes: 62 additions & 0 deletions src/content/blog/es/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: false
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
62 changes: 62 additions & 0 deletions src/content/blog/fr/working-with-non-numbered-sections-in-latex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: "Working with Non-numbered Sections in LaTeX"
description: "Learn how to create non-numbered sections and chapters in LaTeX and decide whether or not to include them in the Table of Contents. Dive deep into the commands and techniques for a better document structuring experience."
tags: ["LaTeX"]
authors: ["Datanautes"]
date: "2023-09-21"
isLocalized: false
---

If you've ever worked with LaTeX, you know the value of structuring your document with sections and subsections. But sometimes, you might not want these sections to be numbered. Here's how you can achieve that and even decide whether or not to include them in the Table of Contents.

## Non-numbered Chapters and Sections

In LaTeX, to create a non-numbered chapter or section, you use the `*` character. Specifically:

- For non-numbered chapters: `\chapter*{Your Chapter Name}`
- For non-numbered sections: `\section*{Your Section Name}`

However, by default, these non-numbered sections or chapters won't appear in your Table of Contents.

## Including Non-numbered Sections in the Table of Contents

If you want to include your non-numbered sections or chapters in the Table of Contents, you can use the `\addcontentsline` command. Here's how:

- For chapters: `\addcontentsline{toc}{chapter}{Your Chapter Name}`
- For sections: `\addcontentsline{toc}{section}{Your Section Name}`
- For subsections: `\addcontentsline{toc}{subsection}{Your Subsection Name}`

## Example

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\tableofcontents
\section*{Non-numbered Section}
\addcontentsline{toc}{section}{Non-numbered Section}
This is a non-numbered section.
\section{Numbered Section}
This is a numbered section.
\subsection{Numbered Subsection}
This is a numbered subsection.
\subsection*{Non-numbered Subsection}
\addcontentsline{toc}{subsection}{Non-numbered Subsection}
This is a non-numbered subsection.
\end{document}
```
### Result:

![](/images/working-with-non-numbered-sections-in-latex.png)

## Wrapping Up

LaTeX is an incredibly powerful tool for document preparation. By understanding commands like the ones above, you can gain greater control over your document's structure and presentation. Happy TeXing!
Loading

0 comments on commit ef24a58

Please sign in to comment.