Translate section title in Latex Overleaf - latex

How I can only translate one section title(abstract) in english in a german document?
\documentclass{article}
% \usepackage[utf8]{inputenc} is no longer required (since 2018)
%Set the font (output) encoding
%--------------------------------------
\usepackage[T1]{fontenc} %Not needed by LuaLaTeX or XeLaTeX
%--------------------------------------
%German-specific commands
%--------------------------------------
\usepackage[ngerman]{babel}
%Hyphenation rules
%--------------------------------------
\usepackage{hyphenat}
\hyphenation{Mathe-matik wieder-gewinnen}
%--------------------------------------
\begin{document}
\tableofcontents
\vspace{2cm} %Add a 2cm space
\begin{abstract}
Dies ist eine kurze Zusammenfassung der Inhalte des in deutscher Sprache
verfassten Dokuments.
\end{abstract}
\section{Einleitendes Kapitel}
Dies ist der erste Abschnitt. Hier können wir einige zusätzliche Elemente
hinzufügen und alles wird korrekt geschrieben und umgebrochen werden. Falls ein
Wort für eine Zeile zu lang ist, wird \texttt{babel} versuchen je nach Sprache
richtig zu trennen.
\section{Eingabe mit mathematischer Notation}
In diesem Abschnitt ist zu sehen, was mit Macros, die definiert worden,
geschieht.
\[ \lim x = \theta + 152383.52 \]
\end{document}
So that Zusammenfassung is translatet to Abstract and all other should stay so far

\documentclass{article}
% \usepackage[utf8]{inputenc} is no longer required (since 2018)
%Set the font (output) encoding
%--------------------------------------
\usepackage[T1]{fontenc} %Not needed by LuaLaTeX or XeLaTeX
%--------------------------------------
%German-specific commands
%--------------------------------------
\usepackage[ngerman]{babel}
\addto\captionsngerman{%
\def\abstractname{Abstract}%
}
%Hyphenation rules
%--------------------------------------
\usepackage{hyphenat}
\hyphenation{Mathe-matik wieder-gewinnen}
%--------------------------------------
\begin{document}
\tableofcontents
\vspace{2cm} %Add a 2cm space
\begin{abstract}
Dies ist eine kurze Zusammenfassung der Inhalte des in deutscher Sprache
verfassten Dokuments.
\end{abstract}
\section{Einleitendes Kapitel}
Dies ist der erste Abschnitt. Hier können wir einige zusätzliche Elemente
hinzufügen und alles wird korrekt geschrieben und umgebrochen werden. Falls ein
Wort für eine Zeile zu lang ist, wird \texttt{babel} versuchen je nach Sprache
richtig zu trennen.
\section{Eingabe mit mathematischer Notation}
In diesem Abschnitt ist zu sehen, was mit Macros, die definiert worden,
geschieht.
\[ \lim x = \theta + 152383.52 \]
\end{document}

Related

How to resolve this Beamer error in TexStudio?

I have imported in TeXStudio a document that compile correctly on Overleaf.
But I got this error :
! Emergency stop.
\pgfsys#defineimage ...astform }\else {\pdfximage
\pgf#imageheight \pgf#imag...
l.16 ...ight=12pt]{beamericonbook}{beamericonbook}
Anybody have an idea of the problem ?
TEX file content :
% Inbuilt themes in beamer
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathabx}
\usepackage{mathpazo}
\usepackage{eulervm}
\usepackage{natbib}
% Theme choice:
\usetheme{Darmstadt}
\usefonttheme{serif}
\usecolortheme{rose}
\makeatletter
\newenvironment{withoutheadline}{
\setbeamertemplate{headline}[default]
\def\beamer#entrycode{\vspace*{-\headheight}}
}{}
\makeatother
\definecolor{macouleur}{RGB}{0,150,200}
\setbeamercolor{structure}{fg=macouleur}
\setbeamercolor{section in toc}{fg=black}
% Title page details:
\beamertemplatenavigationsymbolsempty
\title{Génie Logiciel \newline ------ \newline
Introductions}
\author{2022/2023}
\institute{Yo}
\date{}
\begin{document}
\begin{withoutheadline}
\begin{frame}
\titlepage
\centering
\includegraphics[scale=0.30]{Polytech.jpg}
\end{frame}
\end{withoutheadline}
\begin{withoutheadline}
\begin{frame}{Organisation du module}
\begin{itemize}
\item 22h de CM/TD/TP
\newline
\item Programmation orientée Objet et UML
\item Versionning et GIT
\item Testing et Junit
\item Design patterns et Java
\newline
\item Examen final sur table
\end{itemize}
\end{frame}
\end{withoutheadline}
\begin{withoutheadline}
\begin{frame}{Sommaire}
\tableofcontents
\end{frame}
\end{withoutheadline}
\section{Logiciel, crise et génie logiciels}
\begin{frame}{Slide 1.1}
This is an unordered list:
\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\end{itemize}
and this is an ordered list:
\begin{enumerate}
\item Item 1
\item Item 2
\item Item 3
\end{enumerate}
\end{frame}
% Blocks frame
\section{Partie 2}
\begin{frame}{Slide 2.1}
\begin{block}{Standard Block}
This is a standard block.
\end{block}
\begin{alertblock}{Alert Message}
This block presents alert message.
\end{alertblock}
\begin{exampleblock}{An example of typesetting tool}
Example: MS Word, \LaTeX{}
\end{exampleblock}
\end{frame}
\end{document}
Log file :
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/amscls\amsthm.sty
Package: amsthm 2020/05/29 v2.20.6
\thm#style=\toks39
\thm#bodyfont=\toks40
\thm#headfont=\toks41
\thm#notefont=\toks42
\thm#headpunct=\toks43
\thm#preskip=\skip61
\thm#postskip=\skip62
\thm#headsep=\skip63
\dth#everypar=\toks44
)
\c#theorem=\count333
)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerbasethemes.st
y))
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerthemedefault.
sty
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerfontthemedefa
ult.sty)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamercolorthemedef
ault.sty)
(C:\Users\Yo\AppData\Local\Programs\MiKTeX\tex/latex/beamer\beamerinnerthemedef
ault.sty
! I can't write on file `1.pdf'.
(Press Enter to retry, or Control-C to exit; default file extension is `.pdf')
Please type another file name for output
! Emergency stop.
\pgfsys#defineimage ...astform }\else {\pdfximage
\pgf#imageheight \pgf#imag...
l.16 ...ight=12pt]{beamericonbook}{beamericonbook}
*** (job aborted, file error in nonstop mode)

LaTeX with overleaf editor - my text goes off the page - how do I get it to go onto the next line, in line with my other text?

I am new to coding - I am using a template to create my CV with overleaf/LaTeX. There were some default settings but I wanted to create some elements that weren't in the default template. I am trying to add in headings within one of my job experiences but my text goes off the page - how do I get it to go onto the next line and stay in line with my other text?
[Screenshot of line going off the page][1]
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%----------HEADING----------
% \begin{tabular*}{\textwidth}{l#{\extracolsep{\fill}}r}
% \textbf{\href{http://sourabhbajaj.com/}{\Large Sourabh Bajaj}} & Email : \href{mailto:sourabh#sourabhbajaj.com}{sourabh#sourabhbajaj.com}\\
% \href{http://sourabhbajaj.com/}{http://www.sourabhbajaj.com} & Mobile : +1-123-456-7890 \\
% \end{tabular*}
\begin{center}
\textbf{\Huge \scshape *******} \\ \vspace{1pt}
\small $|$ \href{}{{}} $|$
\href{}{\underline{LinkedIn}}
\end{center}
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{}{}
{}{}
\linebreak
\resumeItemListStart
\resumeItem{}
\resumeItem{}
\resumeItem{}
\linebreak
% \resumeItem{\textbf{\underline{{Client: }}}}
% \begin{enumerate}
% \item [-]
% \item[-]
% \end{enumerate}
% \resumeItem{\underline{}}
% \begin{enumerate}
% \item [-]
% \item [-]
% \item[-]
% \end{enumerate}
\begin{itemize}[leftmargin=0in, label={}]
\small{\item{
\text{\uline{}
\item[-]{}
\item[-]{}
\end{enumerate}
}}
\end{itemize}
\begin{itemize}[leftmargin=0in, label={}]
\small{\item{
\text{\uline{{}}} \\
\begin{enumerate}
\item[-]{.}
\end{enumerate}
}}
\end{itemize}
A couple of problems:
the syntax \small{....} is wrong. \small is a switch, which does not take an argument, so it should be {\small ...}. To avoid incorrect baselineskips, I suggest to place this outside of the itemize environment
\text{...} is a math only command. You must not use it outside of math environments.
\item does not take an mandatory argument. Instead of \item{...} it should be \item ....
don't abuse \\ for line breaks (outside of tables etc.).
several missing \end{itemize}
missing \end{document}
%-------------------------
% Resume in Latex
% Author : Jake Gutierrez
% Based off of: https://github.com/sb2nov/resume
% License : MIT
%------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{contour}
\usepackage{ulem}
\input{glyphtounicode}
%----------FONT OPTIONS----------
% sans-serif
% \usepackage[sfdefault]{FiraSans}
% \usepackage[sfdefault]{roboto}
% \usepackage[sfdefault]{noto-sans}
% \usepackage[default]{sourcesanspro}
% serif
% \usepackage{CormorantGaramond}
% \usepackage{charter}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Ensure that generate pdf is machine readable/ATS parsable
\pdfgentounicode=1
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
{#1 \vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small#3} & \textit{\small #4} \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeSubSubheading}[2]{
\vspace{-2pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l#{\extracolsep{\fill}}r}
\text{#1} & #2 \\
\end{tabular*}\vspace{-7pt}
}
\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{0.97\textwidth}{l#{\extracolsep{\fill}}r}
\small#1 & #2 \\
\end{tabular*}\vspace{-7pt}
}
\renewcommand{\ULdepth}{3pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\resumeSubItem}[1]{\resumeItem{#1}\vspace{-4pt}}
\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.15in, label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-------------------------------------------
%%%%%% RESUME STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%----------HEADING----------
% \begin{tabular*}{\textwidth}{l#{\extracolsep{\fill}}r}
% \textbf{\href{http://sourabhbajaj.com/}{\Large Sourabh Bajaj}} & Email : \href{mailto:sourabh#sourabhbajaj.com}{sourabh#sourabhbajaj.com}\\
% \href{http://sourabhbajaj.com/}{http://www.sourabhbajaj.com} & Mobile : +1-123-456-7890 \\
% \end{tabular*}
\begin{center}
\textbf{\Huge \scshape Sophie Clarke} \\ \vspace{1pt}
\small 07920 429 244 $|$ \href{sophieclarke#hotmail.co.uk}{{sophieclarke#hotmail.co.uk}} $|$
\href{https://www.linkedin.com/in/sophie-clarke-5b51aaba/}{\underline{LinkedIn}}
\end{center}
%-----------EXPERIENCE-----------
\section{Experience}
\resumeSubHeadingListStart
\resumeSubheading
{Research Assistant in the Economics of International Trade}{September 2021 -- Present}
{The UK Trade Policy Observatory}{Brighton, UK/ Remote}
\linebreak
\resumeItemListStart
\resumeItem{Assist the UKTPO team of researchers with regard to data and background research and contribute to the production of research outputs for publication.}
\resumeItem{Structure day-to-day research activities; prioritise and meet deadlines across multiple projects.}
\resumeItem{Handle confidential information with diligence and circumspection.}
\linebreak
% \resumeItem{\textbf{\underline{{Client: British Chamber of Commerce}}}}
% \begin{enumerate}
% \item [-] Used MATLAB to support the development of an analytical model to analyse answers to the BCC’s Quarterly Economic Survey using natural language processing, machine learning techniques and sentiment analysis.
% \item[-] Produced a final written report explaining methods, techniques, results and findings.
% \end{enumerate}
% \resumeItem{\underline{Ongoing Research Project: The Consequences of Brexit for the UK}}
% \begin{enumerate}
% \item [-] Textual analysis of EU legal directives and regulations applicable to the single market.
% \item [-]Extensive preparation and use of data.
% \item[-] Written contribution to briefing paper publication.
% \end{enumerate}
{\small
\begin{itemize}[leftmargin=0in, label={}]
\item
\uline{Client: British Chamber of Commerce}
\begin{enumerate}
\item[-] Used MATLAB to support the development of an analytical model to analyse answers to the BCC’s Quarterly Economic Survey using natural language processing, machine learning techniques and sentiment analysis.
\item[-] Produced a final written report explaining methods, techniques, results and findings.
\end{enumerate}
\end{itemize}
}
{\small
\begin{itemize}[leftmargin=0in, label={}]
\item
\uline{Ongoing Research Project: The Impact of the UK Points Based System on European Union Professional Footballer Mobility in England}
\begin{enumerate}
\item[-] Used MATLAB to support the development of a web scraping tool to gather primary data for the project.
\end{enumerate}
\end{itemize}
}
\end{itemize}
\end{itemize}
\end{document}

How do i create a table of contents per infront of every chapter that lists the contents of that chapter?

I am working on a document with multiple works in it and need to be able to create a new tableofcontents per work. How do I achieve that? To be clear, the diffrent works are sections, so I need a tableofcontents that shoes all sub- and subsubsections etc of the current section.
Here is an example
\documentclass[paper=170mm:240mm,BCOR=5mm,DIV=calc,10pt,headsepline]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[hyphens]{url}
\usepackage{blindtext}
\usepackage[onehalfspacing]{setspace}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{backgrounds,calc}
\setquotestyle[guillemets]{german}
\usepackage[symbol,hang]{footmisc}
%package für Abkürzungsverzeichnis
\usepackage[]{acronym}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles
\ohead{\headmark}
\automark[subsection]{section}
\ofoot[\pagemark]{\pagemark}
\usepackage[fleqn]{amsmath}
\usepackage{xcolor}
\usepackage{imakeidx}
\makeindex[program=makeindex,options=-s MyIndex,columns=2,title=Sachregister,intoc]
% Use package for title formatting
\usepackage{titlesec}
\usepackage{float}
% Make title page
%Hier Set und Def von Sachen-----------------------------------------
% Strich bei Seitenzahlen:------------------
\rofoot*{%
\makebox[0pt][l]{%
\hspace{\marginparsep}%
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{%
\rule[-\dp\strutbox]{1pt}{2\baselineskip}%
}%
\enskip
\pagemark
}%
}
\lefoot*{%
\makebox[0pt][r]{%
\pagemark
\enskip
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{%
\rule[-\dp\strutbox]{1pt}{2\baselineskip}%
}%
\hspace{\marginparsep}%
}%
}
\addtokomafont{pagehead}{\upshape}
%---------------------------------------------
\title{a}
\author{b }
\date{April 2021}
%Dokument-----------------------------------------------------------
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\Blinddocument
\end{document}
This is the format I'm using
One possibility using the etoc package:
\documentclass[paper=170mm:240mm,BCOR=5mm,DIV=calc,10pt,headsepline]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[hyphens]{url}
\usepackage{blindtext}
\usepackage[onehalfspacing]{setspace}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{backgrounds,calc}
\setquotestyle[guillemets]{german}
\usepackage[symbol,hang]{footmisc}
%package für Abkürzungsverzeichnis
\usepackage[]{acronym}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearpairofpagestyles
\ohead{\headmark}
\automark[subsection]{section}
\ofoot[\pagemark]{\pagemark}
\usepackage[fleqn]{amsmath}
\usepackage{xcolor}
\usepackage{imakeidx}
\makeindex[program=makeindex,options=-s MyIndex,columns=2,title=Sachregister,intoc]
% Use package for title formatting
%\usepackage{titlesec}
\usepackage{float}
% Make title page
%Hier Set und Def von Sachen-----------------------------------------
% Strich bei Seitenzahlen:------------------
\rofoot*{%
\makebox[0pt][l]{%
\hspace{\marginparsep}%
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{%
\rule[-\dp\strutbox]{1pt}{2\baselineskip}%
}%
\enskip
\pagemark
}%
}
\lefoot*{%
\makebox[0pt][r]{%
\pagemark
\enskip
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{%
\rule[-\dp\strutbox]{1pt}{2\baselineskip}%
}%
\hspace{\marginparsep}%
}%
}
\addtokomafont{pagehead}{\upshape}
%---------------------------------------------
\title{a}
\author{b }
\date{April 2021}
\usepackage{etoc}
\etocsettocstyle{}{}%
%Dokument-----------------------------------------------------------
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{First Chapter}
\localtableofcontents
\section{title}
\section{title}
\blindtext
\end{document}

How can I leftalign each column of a table? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I want to describe a number of variables in an equation and format it in a certain way. I don't know how to do that.
I have tried using the \begin{table} environment together with \begin{flushleft} and \begin{tabular}.
Also, I tried using \begin{align*} and \begin{flalign*}.
\begin{flalign*}
&C_R&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Büro}&[\frac{g}{m^3}]\\
&C_{Amb}&\text{CO\textsubscript{2}-Masse pro Luftvolumen in der Umgebung}&[\frac{g}{m^3}]\\
&C_{Corr}&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Flur}&[\frac{g}{m^3}]\\
&C_{ProdPP}&\text{CO\textsubscript{2}-Masse-Produktion pro Luftvolumen pro Person}&[\frac{g}{min}]\\
&\dot{m}_{airx}&\text{Luftmassenstrom vom Büro in die Umgebung und benachbarte Räume}&[\frac{kg}{min}]\\
&\dot{m}_{Amb}&\text{Luftmassenstrom von der Umgebung in das Büro}&[\frac{kg}{min}]\\
&\dot{m}_{Corr}&\text{Luftmassenstrom vom Flur in das Büro}&[\frac{kg}{min}]\\
&\rho_{air}&\text{Dichte der Luft}&[\frac{kg}{m^3}]\\
&V_{office}&\text{Volumen des Büros}&[m^3]\\
&\Delta t&\text{Zeitschritt}&[min]\\
&n_{OCC,i}&\text{Anzahl der anwesenden Personen}&[-]\\
\end{flalign*}
\begin{table}
\begin{flushleft}
\begin{tabular}{c c c}
$C_R$&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Büro}&[$\frac{g}{m^3}$]\\
$C_{Amb}$&\text{CO\textsubscript{2}-Masse pro Luftvolumen in der Umgebung}&[$\frac{g}{m^3}$]\\
$C_{Corr}$&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Flur}&[$\frac{g}{m^3}$]\\
$C_{ProdPP}$&\text{CO\textsubscript{2}-Masse-Produktion pro Luftvolumen pro Person}&[$\frac{g}{min}$]\\
$\dot{m}_{airx}$&\text{Luftmassenstrom vom Büro in die Umgebung und benachbarte Räume}&[$\frac{kg}{min}$]\\
$\dot{m}_{Amb}$&\text{Luftmassenstrom von der Umgebung in das Büro}&[$\frac{kg}{min}$]\\
$\dot{m}_{Corr}$&\text{Luftmassenstrom vom Flur in das Büro}&[$\frac{kg}{min}$]\\
$\rho_{air}$&\text{Dichte der Luft}&[$\frac{kg}{m^3}$]\\
$V_{office}$&\text{Volumen des Büros}&[$m^3$]\\
$\Delta t$&\text{Zeitschritt}&[$min$]\\
% $n_{OCC,i}$&\text{Anzahl der anwesenden Personen}&[$-$]\\
\end{tabular}
\end{flushleft}
\end{table}
This is the current result I get:
Here, the middle column is right-aligned.
But I want each column to be aligned to the left.
If the columns should be left aligned, I suggest to simply use l columns instead of c columns:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{table}
%\begin{flushleft}
\begin{tabular}{lll}
$C_R$&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Büro}&[$\frac{g}{m^3}$]\\
$C_{Amb}$&\text{CO\textsubscript{2}-Masse pro Luftvolumen in der Umgebung}&[$\frac{g}{m^3}$]\\
$C_{Corr}$&\text{CO\textsubscript{2}-Masse pro Luftvolumen im Flur}&[$\frac{g}{m^3}$]\\
$C_{ProdPP}$&\text{CO\textsubscript{2}-Masse-Produktion pro Luftvolumen pro Person}&[$\frac{g}{min}$]\\
$\dot{m}_{airx}$&\text{Luftmassenstrom vom Büro in die Umgebung und benachbarte Räume}&[$\frac{kg}{min}$]\\
$\dot{m}_{Amb}$&\text{Luftmassenstrom von der Umgebung in das Büro}&[$\frac{kg}{min}$]\\
$\dot{m}_{Corr}$&\text{Luftmassenstrom vom Flur in das Büro}&[$\frac{kg}{min}$]\\
$\rho_{air}$&\text{Dichte der Luft}&[$\frac{kg}{m^3}$]\\
$V_{office}$&\text{Volumen des Büros}&[$m^3$]\\
$\Delta t$&\text{Zeitschritt}&[$min$]\\
% $n_{OCC,i}$&\text{Anzahl der anwesenden Personen}&[$-$]\\
\end{tabular}
%\end{flushleft}
\end{table}
\end{document}
(unrelated to the problem: units should be set upright and math mode should not be used for multi-letter words like min, office etc. It might be a good idea to have look at the siunitx package to make it easier to typeset units correctly)

Neo4j - how to create two relationships at once?

I am trying to create a new node and link this node to two other nodes.
It is failing with the message:
QueryExecutionKernelException: A single relationship type must be specified for CREATE (line 6, column 11 (offset: 912))
create (d:Description{description_text:"Gegenstand der Arbeit ist die Untersuchung von Ortsumbenennungen auf dem Territorium der russischen Teilrepublik der Sowjetunion (RSFSR). Welche Entscheidungswege gab es? Nach welchen Kriterien wurden die Namen gewählt? Der Schwerpunkt der Arbeit liegt auf dem Kaliningrader Gebiet, wo über die Siedlungsnamen hinaus auch fast alle Flur- und Gewässernamen ausgetauscht worden sind. Auch die Umbenennungen auf der Krim, auf Sachalin und in Karelien werden auf ihre Motivationen hin analysiert. Zugleich wird das Thema in den Kontext der europäischen Geschichte des 20. Jahrhunderts eingebunden; Umbenennungen sind eines der Mittel zur Schaffung von Gedächtnisorten für neue politische und gesellschaftliche Verhältnisse. "})
with d
match (w:Woka{woka_id:'97836530481000000000'})
match (l:Language) where (l.iso_639_2_code = 'ger')
create (w)-[:DESCRIBED_BY]->(d)
create (d)<-[DESCRIBED_IN]-(l)
;
How can I change this in order to succeed?
I just tested your query, and the exception you get is a bit confusing.
In fact you are missing a semicolon : for the second relationship type.
create (d)<-[:DESCRIBED_IN]-(l)
Then it is working

Resources