All Projects → SSoelvsten → latex-preamble-and-examples

SSoelvsten / latex-preamble-and-examples

Licence: MIT license
A LaTeX preample for Computer Science handins and presentations (Danish and English) with reverse-engineerable examples

Programming Languages

TeX
3793 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to latex-preamble-and-examples

All About Programming
Everything about programming!!
Stars: ✭ 314 (+1552.63%)
Mutual labels:  computer-science, article
best AI papers 2021
A curated list of the latest breakthroughs in AI (in 2021) by release date with a clear video explanation, link to a more in-depth article, and code.
Stars: ✭ 2,740 (+14321.05%)
Mutual labels:  computer-science
ClassicComputerScienceProblemsInJava
Source Code for the Book Classic Computer Science Problems in Java
Stars: ✭ 95 (+400%)
Mutual labels:  computer-science
Tasks
Tasks is an application that optimizes computer performance. Tasks improves overall system performance, boot times, and a safer experience while using your computer.
Stars: ✭ 65 (+242.11%)
Mutual labels:  computer-science
js-algorithms
Computer science
Stars: ✭ 64 (+236.84%)
Mutual labels:  computer-science
amh-code
Complete implementations from "Algorithms for Modern Hardware"
Stars: ✭ 247 (+1200%)
Mutual labels:  computer-science
Algorithms
Data Structures & Algorithms. Includes solutions for Cracking the Coding Interview 6th Edition
Stars: ✭ 89 (+368.42%)
Mutual labels:  computer-science
awesome-cs
计算机优质书籍搜罗+学习路线推荐!
Stars: ✭ 1,925 (+10031.58%)
Mutual labels:  computer-science
RepSeP
Reproducible Self-Publishing - Demo Publications in the Most Common Formats
Stars: ✭ 14 (-26.32%)
Mutual labels:  article
ios-developer-roadmap
Roadmap for IOS Developers
Stars: ✭ 17 (-10.53%)
Mutual labels:  computer-science
learning-computer-science
Learning data structures, algorithms, machine learning and various computer science constructs by programming practice from resources around the web.
Stars: ✭ 28 (+47.37%)
Mutual labels:  computer-science
FlutterNote
Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
Stars: ✭ 22 (+15.79%)
Mutual labels:  article
SDR Matlab OFDM 802.11n
📡 Using Software Designed Radio to transmit MIMO-OFDM QPSK signals at 5 GHz
Stars: ✭ 44 (+131.58%)
Mutual labels:  preamble
resources
Learning resources to develop skills across the frontend and related areas. PR's are welcome!
Stars: ✭ 12 (-36.84%)
Mutual labels:  computer-science
dev-log
A comprehensive list of links and resources about anything programming related
Stars: ✭ 55 (+189.47%)
Mutual labels:  article
My NoteBook
サイエンス、テクノロジー、エンジニアリング関連の情報を記載したノート(忘備録)です。
Stars: ✭ 104 (+447.37%)
Mutual labels:  computer-science
Data-Science-From-Linkedin
This repository focuses on saving my linkedin articles and stuff that I find "USEFUL" on LinkedIn.
Stars: ✭ 125 (+557.89%)
Mutual labels:  article
alchemy
Generate any a-by-( b + c ) finite rectangle SVG containing potentially Infinitely many a-by-( 2 * b ) finite rectangles animated along a number line of ( ( c - b ) / a )^n scale symmetry.
Stars: ✭ 29 (+52.63%)
Mutual labels:  computer-science
SuluArticleBundle
Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
Stars: ✭ 35 (+84.21%)
Mutual labels:  article
datastructures-in-javascript
Illustrated Data Structures — Video Series
Stars: ✭ 88 (+363.16%)
Mutual labels:  computer-science

LaTeX - Preamble and Examples

version MIT License test

This small repository contains a LaTeX Preamble with settings for Computer Science handins together with a document with examples of use of all the different packages in the preamble together with a template to get a new document started quicker.

Table of Contents

Branches

The project is distributed across three "official" branches.

Branch Purpose
main Latest stable version of the preamble together with the documents
preamble-only Latest stable version of the preamble (i.e. without the documents)
develop Nightly builds. Expect force pushes! You may need to git reset --hard origin/develop

To compile your old documents prior to the rewrite in early 2020 you most likely need to use the old version. This one can be found on the unmaintained main-v1 branch.

Example and Template Documents

In the documents folder you can find multiple documents of the form template_*.tex and example_*.tex.. The compiled version of all files are also immediately provided, such that you can cross-compare the code and the output without having to compile yourself.

Templates

File Purpose
template_blank.tex Smallest template provided, useful for handins
template_dissertation.tex Template for your dissertations
template_report.tex Template for longer reports and papers

Examples

The examples provide explanations and examples of how to use the various packages in the preamble. They are all made with the intent to be reverse engineerable.

File Purpose
example_article.tex Example document for handins, reports, and dissertations
example_beamer.tex Example document for slideshows

How to use the preamble in your project

The purpose of a preamble is to have a single source of all your LaTeX settings. This can work elegantly when the document source is on your machine.

Step 1: Installation

Before you can include the preamble in your project you first need a copy of the preamble.

Local Machine

For a simple project on your local machine you can simply clone this repository somewhere on your machine.

git clone [email protected]:SSoelvsten/LaTeX-Preamble_and_Examples.git

If you don't need the examples document, you can choose to only clone the preamble-only branch.

git clone -b preamble-only [email protected]:SSoelvsten/LaTeX-Preamble_and_Examples.git

Git Project

In a Git repository you may want to directly include this as a subrepository such that everyone has the same version and the relative path is always the same. To keep the footprint small, you only need to clone the preamble-only branch which contains the newest version of all the files in the preamble/ folder.

To do this run the following commands

git submodule add -b preamble-only [email protected]:SSoelvsten/LaTeX-Preamble_and_Examples.git preamble
git commit -m "Add preamble submodule"

This registers the subrepository in your project as a submodule and places the preamble files in the preamble/ folder.

When you then clone your Git project, then either clone it with the --recursive option or run the following two commands in an already cloned repository.

git submodules init
git submodules update

Overleaf / ShareLaTeX

In the Releases section you can find .zip files that you can directly drag and drop into your project with the whole preamble.

Step 2: Link your document to the preamble

The preamble is made in two parts, with the intent to divide the settings between the general and the localisation specific settings. This is only of value, should you write your .tex document in various languages.

  • base_p1, base_p2: Packages and most settings (the second part is to be executed after localisation)
  • dk/en: Settings specifically for localisation to danish (dk) or english (en**. The underlying preamble

When importing the preamble you have to only import the localised .tex file, since there's already a call to the base settings within both. How you import it depends on where you have the preamble files located compared to your document.

Case: Same folder

\documentclass[english]{article}
\input{preamble_en.tex}

Case: Relative path

\documentclass[english]{article}
\usepackage{import}
\subimport{../preamble/}{preamble_en.tex}

Case: Absolute path

On Windows

\documentclass[english]{article}
\usepackage{import}
\import{C:/GitHub/LaTeX-Preamble_and_Examples/preamble/}{preamble_en.tex}

On Unix

\documentclass[english]{article}
\usepackage{import}
\import{/home/username/Documents/LaTeX-Preamble_and_Examples/preamble/}{preamble_en.tex}

Notice, that the paths above is a bit different if you choose to only clone the preamble-only branch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].