Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Argument Relevance Presentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marc Feger
Argument Relevance Presentation
Commits
bbd7efc6
Commit
bbd7efc6
authored
Aug 1, 2020
by
Marc Feger
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab-ci and latexmkrc
parent
c097d64f
No related branches found
No related tags found
No related merge requests found
Pipeline
#43716
passed
Aug 1, 2020
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+21
-0
21 additions, 0 deletions
.gitlab-ci.yml
.latexmkrc
+30
-0
30 additions, 0 deletions
.latexmkrc
with
51 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
21
−
0
View file @
bbd7efc6
image
:
$CI_REGISTRY/cn-tsn/general/templates/latex
lint
:
image
:
golang:alpine
before_script
:
-
apk add --no-cache git
-
go get github.com/errata-ai/vale
script
:
-
vale .
allow_failure
:
true
pdf
:
script
:
-
latexmk -f
only
:
-
master
artifacts
:
paths
:
-
master.pdf
expire_in
:
1 week
This diff is collapsed.
Click to expand it.
.latexmkrc
0 → 100644
+
30
−
0
View file @
bbd7efc6
# specify the main file
@default_files = ('master.tex');
# create a pdf version of the document with pdflatex
$pdf_mode = 1; # tex -> pdf
# specify the pdflatex options
$pdflatex = 'pdflatex -8bit -file-line-error -halt-on-error -synctex=1 %O %S';
# remove files with the following file extentions (as well as the default ones) when using "latexmk -c" or "latexmk -C"
$clean_ext .= "synctex.gz run.xml %R-blx.bib lol bbl";
$cleanup_includes_cusdep_generated = 1;
# Remove comment from next line to output a list of dependents after compilation ("shadows" latexmk output)
# $dependents_list = 1;
# convert svg files directly to pdf with inkscape
add_cus_dep('svg', 'pdf', 0, 'svg2pdf');
sub svg2pdf {
$currdir = '$PWD';
return system("inkscape --export-text-to-path --export-area-drawing --export-pdf=\"$currdir/$_[0].pdf\" \"$currdir/$_[0].svg\"");
}
# run makeindex
add_cus_dep('idx', 'ind', 0, 'makeindex');
sub makeindex{
return system("makeindex \"$_[0].idx\"");
}
push @generated_exts, 'ind';
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment