alexisflesch / nexus Goto Github PK
View Code? Open in Web Editor NEWA style file for LaTeX
A style file for LaTeX
The color on the header and the footer will be changed when I use nexus style and macro set diagbox at the same time. This is strange because I don't think there's anything have to do withe diagbox. But it does happened.๐
This is the color without \usepackage{diagbox}
This is the color with \usepackage{diagbox}
And here's the MWE:
\documentclass[11pt,oneside]{book}
\usepackage[palette=munch]{nexus}
\usepackage[verbose]{hyperref}
\usepackage{diagbox}
\begin{document}
\chapter{1}
aaa
\chapter{2}
aaa
\end{document}
Hello,
I try to add two indexes using the nexus style. I had some succefull to creat these indexes. Infortunately, the nexus style consider the indexes as a part of the last chapter (the foot of pages of the indexes are pointing on the last chapter by the heigh rectangle in the foot), while the head page is correct (with the correct title of each index).
I want to know if you have a solution about this. Than you in advance for your response.
I got this error in out file:
! Missing \endcsname inserted.
<to be read again>
This is code
\documentclass[11pt,oneside]{book}
%%%%%%%%%%%%% Geometry
\usepackage[a4paper,left=2.5cm,right=2.5cm, bottom=2.5cm,top=2.5cm]{geometry}
%%%%%%%%%%%%%%% Les paquets
\usepackage[utf8]{vietnam}
\usepackage[palette=munch]{nexus}
%%%%%%%%%%%%%%%% hyperref
\usepackage{lipsum}
\usepackage[verbose]{hyperref}
\hypersetup{
hidelinks
}
\setlength{\XeTeXLinkMargin}{-1pt}
\begin{document}
\include{titlepage}
\tableofcontents
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
%%%%%%%%%%%%%%%%%%%%%%%
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
%%%%%%
\begin{appendices}
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\end{appendices}
\end{document}
It appears that when I load the mhchem pacakge (\usepackage{mhchem}
) the bookmark tabs fail to render properly, showing something like this for chapter 2
Note that the bar at the bottom should have a chapter 2 with the popup. Not quite sure why this happens.
MWE:
% !TeX program = lualatex
\documentclass[11pt,oneside]{book}
%%%%%%%%%%%%% Geometry
\usepackage[a4paper,left=2.5cm,right=2.5cm, bottom=2.5cm,top=2.5cm]{geometry}
%%%%%%%%%%%%%%% Les paquets
\usepackage[english]{babel}
\usepackage[palette=munch]{nexus}
%%%%%%%%%%%%%%%% hyperref
\usepackage{lipsum}
\usepackage[verbose]{hyperref}
\hypersetup{
hidelinks
}
\setlength{\XeTeXLinkMargin}{-1pt}
\usepackage{mhchem}
\begin{document}
\include{titlepage}
\tableofcontents
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
%%%%%%%%%%%%%%%%%%%%%%%
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
%%%%%%
\begin{appendices}
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\chapter{This is a Chapter}
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-3]
\subsection{This is a subsection}
\lipsum[1-2]
\section{This is a section}
\subsection{This is a subsection}
\lipsum[1-1]
\subsection{This is a subsection}
\lipsum[1-2]
\end{appendices}
\end{document}
The issue is not resolved by compiling multiple times
There's some thing strang about my TOC when I use nexus style. If I split my tex file into some parts and use \include to join them together, the index will become a part of the last chapter. I don't think this is because of hyperref. Just like this.
I split the MWE into 3 parts since I need to use \include.
main.tex:
\documentclass[11pt,oneside]{book}
\usepackage[palette=munch]{nexus}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\chapter{This is a Chapter}
\include{1.tex}
\chapter{This is a Chapter}
\include{2.tex}
\end{document}
and 1.tex:
\section{1}
2.tex:
\section{2}
But if I write \chapter and \section together, this won't happen.
Just like:
main.tex:
\documentclass[11pt,oneside]{book}
\usepackage[palette=munch]{nexus}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\include{1.tex}
\include{2.tex}
\include{3.tex}
\end{document}
and 1.tex:
\chapter{This is a Chapter}
\section{1}
2.tex:
\chapter{This is a Chapter}
\section{2}
3.tex:
\section{3}
Is there a way to configure nexus.sty for a twoside print version?
And about personalize the footer (put a name or a logo)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.