更新

更新

所以我选择 Latex 来写我的论文,我对此很陌生,我花了半天时间在谷歌上搜索这个问题,但没有解决方案,所以请原谅我的问题。无论如何,我了解到,如果我想将我的一些文本加粗或斜体,我必须使用此命令 \textit{my text...etc },但当我尝试时什么也没发生,文本看起来完全一样,我只是想知道我是否应该在序言中导入一些内容。

事实上没有任何文本..在起作用,我正在使用 sharedlatex。

看起来甚至 biblatex 也坏了……参考文献并没有按应有的方式显示。

更新

这是代码示例。

注意:我删除了共享 latex 的链接,因为它不符合规则

\documentclass[12pt]{article}

\usepackage[a4paper]{geometry}


\usepackage[utf8]{inputenc}
\usepackage[T1,T2A]{fontenc}

\usepackage{times}

\usepackage{setspace}

\onehalfspace

\usepackage[estonian, english]{babel} %the thesis is in English

\addto\captionsestonian{%
  \renewcommand{\refname}{Viidatud kirjandus}%
  \renewcommand{\appendixname}{Lisad}%
}



\usepackage[backend=biber, style=numeric]{biblatex}
\usepackage{csquotes}

\addbibresource{references.bib}

\usepackage[parfill]{parskip}


\usepackage{float}


\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}


\usepackage[mathscr]{eucal}


\usepackage[labelsep=period]{caption}

% Packages for building tables and tabulars
\usepackage{array}
\usepackage{tabu}   % Wide lines in tables
\usepackage{xspace} % Non-eatable spaces in macros

% Including graphical images and setting the figure directory
\usepackage{graphicx}
\graphicspath{{img/}}

% Packages for getting clickable links in PDF file
%\usepackage{hyperref}
\usepackage[hidelinks]{hyperref} %hide red (blue,green) boxes around links
\usepackage[all]{hypcap}


% Packages for defining colourful text together with some colours
\usepackage{color}
\usepackage{xcolor}


\definecolor{mauve}{rgb}{0.58,0,0.82}

\let\chapter\section
\usepackage[ruled, vlined, linesnumbered]{algorithm2e}

\SetKw{True}{true}
\SetKw{False}{false}
\SetKwData{typeInt}{Int}
\SetKwData{typeRat}{Rat}
\SetKwData{Defined}{Defined}
\SetKwFunction{parseStatement}{parseStatement}


% Nice todo notes
\usepackage{todonotes}

% comments and verbatim text (code)
\usepackage{verbatim}

% add table inline 
\usepackage{wrapfig}


% Proper way to create coloured code listings
\usepackage{listings}


\usepackage{proof}
\usepackage{semantic}
\setlength{\inferLineSkip}{4pt}
\def\predicatebegin #1\predicateend{$\Gamma \vdash #1$}

\newcommand{\proveit}{ProveIt\xspace}

% Macros that make sure that the math mode is set
\newcommand{\typeF}[1] {\ensuremath{\mathsf{type_{#1}}}\xspace}
\newcommand{\opDiv}{\ensuremath{\backslash \mathsf{div}}\xspace}

% Nice Todo box
\newcommand{\TODO}{\todo[inline]}

% A way to define theorems and lemmata
\newtheorem{theorem}{Theorem}

%Add images side by side 
\usepackage{subcaption}

%Add other fonts I guess?
\usepackage{mathptmx}



%%% BEGIN DOCUMENT
\begin{document}

%===BEGIN TITLE PAGE
\thispagestyle{empty}
\begin{center}

\iflanguage{english}{%
\large

}%\iflanguage

\iflanguage{english}{%
\Large 
}{%
\Large 
}%\iflanguage

\end{center}

\vspace{2mm}

\begin{flushright}
 {
 \setlength{\extrarowheight}{5pt}
 \begin{tabular}{r l}

 \end{tabular}
 }
\end{flushright}

%===COMPULSORY INFO PAGE


%=== Info in English
\newcommand\EngInfo{{%
\selectlanguage{english}
\noindent\textbf{\large}

\vspace*{3ex}

\noindent\textbf{Abstract:}

\noindent
 \textsc{Whitespace}
  \textsc{Whitespace} language.
\vspace*{1ex}

\noindent\textbf{Keywords:}\\
\TODO{List of keywords}
%Layout, formatting, template

\vspace*{1ex}


\vspace*{1ex}
}}%\newcommand\EngInfo


%=== Info in Estonian
\newcommand\EstInfo{{%
\selectlanguage{estonian}
\noindent\textbf{\large Tüübituletus neljandat järku loogikavalemitele}
\vspace*{1ex}

\noindent\textbf{Lühikokkuvõte:}

%\noindent ...

\vspace*{1ex}

\noindent\textbf{Võtmesõnad:}\\
\TODO{List of keywords}
%Layout, formatting, template

\vspace*{1ex}

\noindent\textbf{CERCS:}\TODO{CERCS kood ja nimetus:~\url{https://www.etis.ee/Portal/Classifiers/Details/d3717f7b-bec8-4cd9-8ea4-c89cd56ca46e}}

\vspace*{1ex}
}}%\newcommand\EstInfo


%=== Determine the order of languages on Info page
\iflanguage{english}{\EngInfo}{\EstInfo}
%\iflanguage{estonian}{\EngInfo}{\EstInfo}


\newpage
\tableofcontents{Table of Contents}


% Remember to remove this from the final thesis version
\newpage
% \listoftodos[Unsolved issues]
% END OF TODO PAGE


\newpage
\section{Introduction}



Bitcoin \cite{bitcoin} is probably the most well-known example of a digital technology implementing the idea of a ledger or a blockchain. Bitcoin has not only shown that the use of cryptology, replication and consensus make it possible to implement a digital ledger, but also that this technology can be a platform for performing safe exchange of cryptocurrencies. Along the same lines, in 2015 an open source project called Ethereum \cite{eth} entered the arena of blockchain technologies by providing not only a simile of Bitcoin, but a more flexible platform by the introduction of the so-called smart contracts, which have opened new opportunities for development on top of blockchain.


It is in this context that my Masters’ thesis work takes place. More specifically, my work aims at providing support to Timer Events as defined in the BPMN standard. Timer events are an interesting construct in BPMN because they provide ways to specify temporal constraints such as deadlines and/or \textbf{milestones} in the underlying business process. However, the notion of time in a technology such as Ethereum does not have a clear meaning: there is not \textit{global} clock, and the time for a transaction completion is not fixed (the same transaction can take a few seconds or several minutes). \textsc{Nevertheless}, we are aware of one existing solution that provides a sort of timer for Ethereum and, in discussion forums, it is also \texttt{claimed} that a timer service for Ethereum can implemented via an external service. However, it is unclear if such solutions can be applied into, and what would the implications of using them in a BPMN execution engine. Those are in fact the main goals of my research.

\newpage
% Use Biblatex if you have problems with Estonian keywords
\printbibliography %biblatex
\end{document}

references.bib

@online{omgwebsite,
    author    = "OMG",
    title     = "BPMN 2.0 by Example",
    year      = {2010},
    url       = "http://www.omg.org/spec/BPMN/20100601/10-06-02.pdf",
    keywords  = "bpm_by_example"
}

@online{bpmn20,
    author    = "OMG",
    title     = "Business Process Model and Notation(BPMN)",
    year      = {2011},
    url       = "http://www.omg.org/spec/BPMN/2.0/PDF/",
    keywords  = "bpm_by_example"
}


@online{eth,
    author    = "Vitalik Buterin",
    title     = "Ethereum White Paper",
    year      = {2013},
    url       = "https://github.com/ethereum/wiki/wiki/White-Paper",
    keywords  = "ethereum"
}

答案1

字体问题是由于设置了T2A默认字体而不是T1加载字体而导致的fontenc。这个问题很容易解决:如果需要,只需反转顺序即可T2A

更一般地,文档设计得不好。对于一篇论文,你想要reportbook。然后你 \chapter而且您并不总是需要\newpage\maketitle甚至可以做一些明智的事情。

但是,您可能titlepage需要自定义标题页。这很好,但比手动设置样式等要容易得多。

\hyperref加载太晚了。除了hypcap,它应该是最后的。

times已弃用,tabu应避免使用,algorithm2e每次加载时都会导致错误。它不会停止编译,但会弄乱分组。

考虑用于booktabs表格。

仅加载您需要的包。

我在代码本身中添加了一些注释,虽然距离良好状态还很远,但也不像我开始时那么糟糕了 :(。

如果您想要的是美式英语而非英式英语,请将其替换american为。含义不明确。(但如果您的大学填写了,他们可能想要,尽管这并非 100% 确定。)britishenglishenglishamerican

\begin{filecontents}{\jobname.bib}
@online{omgwebsite,
    author    = "OMG",
    title     = "BPMN 2.0 by Example",
    year      = {2010},
    url       = "http://www.omg.org/spec/BPMN/20100601/10-06-02.pdf",
    keywords  = "bpm by example"
}

@online{bpmn20,
    author    = "OMG",
    title     = "Business Process Model and Notation(BPMN)",
    year      = {2011},
    url       = "http://www.omg.org/spec/BPMN/2.0/PDF/",
    keywords  = "bpm by example"
}


@online{eth,
    author    = "Vitalik Buterin",
    title     = "Ethereum White Paper",
    year      = {2013},
    url       = "https://github.com/ethereum/wiki/wiki/White-Paper",
    keywords  = "ethereum"
}
\end{filecontents}

\documentclass[12pt,a4paper,estonian,british]{report}% or american, if you want US English
\usepackage{geometry}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
% default encoding *last*
\usepackage[T2A,T1]{fontenc}
\usepackage{babel} %the thesis is in English

\usepackage[backend=biber,style=numeric]{biblatex}
\usepackage{csquotes}
\addbibresource{\jobname.bib}

\usepackage[parfill]{parskip}

% times is deprecated - pick a modern times clone instead
\usepackage{tgtermes}
\usepackage{amsmath,amsthm,amssymb}
% are you sure about this?
\usepackage[mathscr]{eucal}
%Add other fonts I guess?
% if you don't know what it is for, don't load it!
% this will change the fonts used for maths, which may or may not overwrite the effects of loading eucal
\usepackage{mathptmx}

% do you need this?
\usepackage{float}
\usepackage[labelsep=period]{caption}
%Add images side by side - do you need this?
\usepackage{subcaption}
% consider using booktabs
% Packages for building tables and tabulars
\usepackage{array}
% avoid tabu !!
% \usepackage{tabu}   % Wide lines in tables
% add table inline
% are you using wrapfig?
\usepackage{wrapfig}

% be wary of using this, especially of overusing it - you need to ensure you don't get spaces where you don't want them and don't get the *wrong* spaces where you want the *right* ones.
\usepackage{xspace} % Non-eatable spaces in macros

% Including graphical images and setting the figure directory
\usepackage{graphicx}
\graphicspath{{img/}}

% Packages for defining colourful text together with some colours
% color is pointless if loading xcolor
\usepackage{xcolor}

% % Nice todo notes
\usepackage{todonotes}
% loading algorithm2e causes things to go wrong, even if you don't use it, due to a bug in the Packages
% so think carefully about how much you need this!
% here's a fix from David Carlisle: http://chat.stackexchange.com/transcript/message/37476446#37476446
\usepackage{ifthen}
\let\zz\setboolean
\def\setboolean{\ifnum\currentgrouplevel=1 \egroup\let\setboolean\zz\fi\zz}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
% % comments and verbatim text (code)
\usepackage{verbatim}
% % % Proper way to create coloured code listings
\usepackage{listings}
\usepackage{proof}
\usepackage{semantic}

% Packages for getting clickable links in PDF file
% hyperref must be loaded LATE - last with certain exceptions e.g. hypcap
\usepackage[hidelinks]{hyperref} %hide red (blue,green) boxes around links
\usepackage[all]{hypcap}

% note the -ing if this is for the whole document
\onehalfspacing
\addto\captionsestonian{%
  \renewcommand{\refname}{Viidatud kirjandus}%
  \renewcommand{\appendixname}{Lisad}%
}
\definecolor{mauve}{rgb}{0.58,0,0.82}
%
% % are you sure about this? maybe you should be using book or report rather than article?
% % \let\chapter\section
%
\SetKw{True}{true}
\SetKw{False}{false}
\SetKwData{typeInt}{Int}
\SetKwData{typeRat}{Rat}
\SetKwData{Defined}{Defined}
\SetKwFunction{parseStatement}{parseStatement}
%
\setlength{\inferLineSkip}{4pt}
% % sizing and spacing are going to get screwed up unless you are very careful with this
% % don't use \def unless you know why you need it and are prepared to accept the consequences
% % this does not look at all right ...
\def\predicatebegin #1\predicateend{$\Gamma \vdash #1$}
%
\newcommand{\proveit}{ProveIt\xspace}
%
% % Macros that make sure that the math mode is set
% % shouldn't these be defined as maths elements with maths spacing?
% % I don't know what these are for, but this looks wrong ....
\newcommand{\typeF}[1] {\ensuremath{\mathsf{type_{#1}}}\xspace}
\newcommand{\opDiv}{\ensuremath{\backslash \mathsf{div}}\xspace}
%
% % Nice Todo box
\newcommand{\TODO}{\todo[inline]}
%
% % A way to define theorems and lemmata
\newtheorem{theorem}{Theorem}

% you're using \selectlanguage, so use this patch
\makeatletter
% fix for bug in babel o ateb joseph wright: http://tex.stackexchange.com/a/361849/
\def\bbl@ensure#1#2#3{%
  \def\bbl@tempb##1{% elt for \bbl@ensured list
    \ifx##1\@empty\else
      \in@{##1}{#2}%
      \ifin@\else
        \toks@\expandafter{##1}%
        \edef\bbl@tempa{%
          \noexpand\DeclareRobustCommand
          \bbl@csarg\noexpand{ensure@\languagename}[1]{%
            \noexpand\foreignlanguage{\languagename}%
            {\ifx\relax#3\else
              \noexpand\fontencoding{#3}\noexpand\selectfont
             \fi
             ########1}}}%
        \bbl@tempa
        \edef##1{%
           \bbl@csarg\noexpand{ensure@\languagename}%
           {\the\toks@}}% The unprotected line end was here!
      \fi
      \expandafter\bbl@tempb
    \fi}%
  \expandafter\bbl@tempb\bbl@ensured\@empty
  \def\bbl@tempa##1{% elt for include list
    \ifx##1\@empty\else
      \bbl@csarg\in@{ensure@\languagename\expandafter}\expandafter{##1}%
      \ifin@\else
        \bbl@tempb##1\@empty
      \fi
      \expandafter\bbl@tempa
    \fi}%
}
\makeatother

%%% BEGIN DOCUMENT
\begin{document}
\begin{titlepage}
  \begin{center}

    \iflanguage{british}{%
      \large

    }{}%\iflanguage

    \iflanguage{british}{%
      \Large
    }{%
      \Large
    }%\iflanguage

  \end{center}

  \vspace{2mm}

  \begin{flushright}
    \setlength{\extrarowheight}{5pt}
    \begin{tabular}{r l}

    \end{tabular}
  \end{flushright}
\end{titlepage}


%=== Info in English
\newcommand\EngInfo{{%
    \selectlanguage{british}%
%     \noindent\textbf{\large}% what is this meant to do?

    \vspace*{3ex}

    \noindent\textbf{Abstract:}% why not use the abstract environment?


    \noindent
    \textsc{Whitespace}
    \textsc{Whitespace} language.
    \vspace*{1ex}

    \noindent\textbf{Keywords:}\par\noindent%\\ don't use \\ to end paragraphs or enter line breaks outside special contexts (e.g. tabular, array, center)
    \TODO{List of keywords}
    %Layout, formatting, template

    \vspace*{1ex}


    \vspace*{1ex}
}}%\newcommand\EngInfo


%=== Info in Estonian
\newcommand\EstInfo{{%
    \selectlanguage{estonian}%
    \noindent\textbf{\large Tüübituletus neljandat järku loogikavalemitele}% the line spacing is going to be wrong here
    \vspace*{1ex}

    \noindent\textbf{Lühikokkuvõte:}

    %\noindent ...

    \vspace*{1ex}

    \noindent\textbf{Võtmesõnad:}\par\noindent
    \TODO{List of keywords}
    %Layout, formatting, template

    \vspace*{1ex}

    \noindent\textbf{CERCS:}\TODO{CERCS kood ja nimetus:~\url{https://www.etis.ee/Portal/Classifiers/Details/d3717f7b-bec8-4cd9-8ea4-c89cd56ca46e}}

    \vspace*{1ex}
}}%\newcommand\EstInfo

%=== Determine the order of languages on Info page
\iflanguage{british}{\EngInfo}{\EstInfo}
%\iflanguage{estonian}{\EngInfo}{\EstInfo}

\tableofcontents

Remember to remove this from the final thesis version
\listoftodos[Unsolved issues]
% END OF TODO PAGE

\chapter{Introduction}

Bitcoin \cite{bitcoin} is probably the most well-known example of a digital technology implementing the idea of a ledger or a blockchain. Bitcoin has not only shown that the use of cryptology, replication and consensus make it possible to implement a digital ledger, but also that this technology can be a platform for performing safe exchange of cryptocurrencies. Along the same lines, in 2015 an open source project called Ethereum \cite{eth} entered the arena of blockchain technologies by providing not only a simile of Bitcoin, but a more flexible platform by the introduction of the so-called smart contracts, which have opened new opportunities for development on top of blockchain.

It is in this context that my Masters’ thesis work takes place. More specifically, my work aims at providing support to Timer Events as defined in the BPMN standard. Timer events are an interesting construct in BPMN because they provide ways to specify temporal constraints such as deadlines and/or \textbf{milestones} in the underlying business process. However, the notion of time in a technology such as Ethereum does not have a clear meaning: there is not \textit{global} clock, and the time for a transaction completion is not fixed (the same transaction can take a few seconds or several minutes). \textsc{Nevertheless}, we are aware of one existing solution that provides a sort of timer for Ethereum and, in discussion forums, it is also \texttt{claimed} that a timer service for Ethereum can implemented via an external service. However, it is unclear if such solutions can be applied into, and what would the implications of using them in a BPMN execution engine. Those are in fact the main goals of my research.

% Use Biblatex if you have problems with Estonian keywords
\printbibliography %biblatex
\end{document}

NFSS 工作

工作参考

相关内容