Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malin Freeborn
config
Commits
d5c67028
Unverified
Commit
d5c67028
authored
2 years ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
add widePic
parent
a07ce387
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
layout.sty
+12
-47
12 additions, 47 deletions
layout.sty
with
12 additions
and
47 deletions
layout.sty
+
12
−
47
View file @
d5c67028
...
...
@@ -41,7 +41,7 @@
\RequirePackage
{
pifont
}
\RequirePackage
{
colortbl
}
\RequirePackage
[poster]
{
tcolorbox
}
\tcbuselibrary
{
breakable,raster
}
\tcbuselibrary
{
breakable,raster
,vignette
}
\tcbuselibrary
{
skins
}
% used for wiggly-border boxes
%%%%% Add fancy page chapter sides %%%%%
...
...
@@ -236,57 +236,22 @@ bookmarks=true]%
\label
{
#1
}
}
\newcommand
{
\toppic
}
[2]
{
\begin{figure*}
[t!]
\IfFileExists
{
images/#1.svg
}{
\includesvg
[width=\textwidth]
{
images/#1
}
}{
\includegraphics
[width=\textwidth]
{
images/#1.jpg
}
}
#2
\label
{
#1
}
\end{figure*}
}
\newcommand
{
\toppicBorder
}
[2]
{
\begin{figure*}
[t!]
\begin{tcolorbox}
[before upper=
{
\parindent
0pt
}
,colframe=black,colback=gray]
\IfFileExists
{
images/#1.svg
}{
\includesvg
[width=\textwidth]
{
images/#1
}
}{
\includegraphics
[width=\textwidth]
{
images/#1.jpg
}
}
#2
\end{tcolorbox}
\label
{
#1
}
\end{figure*}
}
\newcommand
{
\bottompic
}
[2]
{
\begin{figure*}
[b!]
\IfFileExists
{
images/#1.svg
}{
\includesvg
[width=\textwidth]
{
images/#1
}
\newcommand
{
\widePic
}
[2][b]
{
\begin{figure*}
[#1!]
\IfFileExists
{
images/#2.svg
}{
\includesvg
[width=\textwidth]
{
images/#2
}
}{
\includegraphics
[width=\textwidth]
{
images/#1.jpg
}
\tcbincludegraphics
[
blankest,
before upper=
{
\parindent
0pt
}
,
boxrule=0mm,
finish fading vignette=
{
size=0.02
\textwidth
}
,
]
{
images/#2.jpg
}
}
#2
\label
{
#1
}
\label
{
#2
}
\end{figure*}
}
\newcommand
{
\bottompicBorder
}
[2]
{
\begin{figure*}
[b!]
\begin{tcolorbox}
[before upper=
{
\parindent
0pt
}
,colframe=black,colback=gray]
\IfFileExists
{
images/#1.svg
}{
\includesvg
[width=\textwidth]
{
images/#1
}
}{
\includegraphics
[width=\textwidth]
{
images/#1.jpg
}
}
#2
\label
{
#1
}
\end{tcolorbox}
\end{figure*}
}
% sidebling
% This command automatically adds little decorations to boxes.
...
...
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