-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
275 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ services: | |
restart: always | ||
# Server Pro users: | ||
# image: quay.io/sharelatex/sharelatex-pro | ||
image: rigon/sharelatex-full | ||
image: rigon/sharelatex-full # :latest-shell-escape | ||
container_name: sharelatex | ||
depends_on: | ||
mongo: | ||
|
@@ -53,33 +53,34 @@ services: | |
## Set for SSL via nginx-proxy | ||
#VIRTUAL_HOST: 103.112.212.22 | ||
|
||
# SHARELATEX_SITE_URL: http://sharelatex.mydomain.com | ||
# SHARELATEX_NAV_TITLE: Our ShareLaTeX Instance | ||
# SHARELATEX_HEADER_IMAGE_URL: http://somewhere.com/mylogo.png | ||
# SHARELATEX_ADMIN_EMAIL: [email protected] | ||
# OVERLEAF_SITE_URL: http://sharelatex.mydomain.com | ||
# OVERLEAF_NAV_TITLE: Our ShareLaTeX Instance | ||
# OVERLEAF_HEADER_IMAGE_URL: http://somewhere.com/mylogo.png | ||
# OVERLEAF_ADMIN_EMAIL: [email protected] | ||
|
||
# SHARELATEX_LEFT_FOOTER: '[{"text": "Powered by <a href=\"https://www.sharelatex.com\">ShareLaTeX</a> 2016"},{"text": "Another page I want to link to can be found <a href=\"here\">here</a>"} ]' | ||
# SHARELATEX_RIGHT_FOOTER: '[{"text": "Hello I am on the Right"} ]' | ||
# OVERLEAF_LEFT_FOOTER: '[{"text": "Powered by <a href=\"https://www.sharelatex.com\">ShareLaTeX</a> 2016"},{"text": "Another page I want to link to can be found <a href=\"here\">here</a>"} ]' | ||
# OVERLEAF_RIGHT_FOOTER: '[{"text": "Hello I am on the Right"} ]' | ||
|
||
# SHARELATEX_EMAIL_FROM_ADDRESS: "[email protected]" | ||
# OVERLEAF_EMAIL_FROM_ADDRESS: "[email protected]" | ||
|
||
# SHARELATEX_EMAIL_AWS_SES_ACCESS_KEY_ID: | ||
# SHARELATEX_EMAIL_AWS_SES_SECRET_KEY: | ||
# OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID: | ||
# OVERLEAF_EMAIL_AWS_SES_SECRET_KEY: | ||
|
||
# SHARELATEX_EMAIL_SMTP_HOST: smtp.mydomain.com | ||
# SHARELATEX_EMAIL_SMTP_PORT: 587 | ||
# SHARELATEX_EMAIL_SMTP_SECURE: false | ||
# SHARELATEX_EMAIL_SMTP_USER: | ||
# SHARELATEX_EMAIL_SMTP_PASS: | ||
# SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH: true | ||
# SHARELATEX_EMAIL_SMTP_IGNORE_TLS: false | ||
# SHARELATEX_EMAIL_SMTP_NAME: '127.0.0.1' | ||
# SHARELATEX_EMAIL_SMTP_LOGGER: true | ||
# SHARELATEX_CUSTOM_EMAIL_FOOTER: "This system is run by department x" | ||
# OVERLEAF_EMAIL_SMTP_HOST: smtp.mydomain.com | ||
# OVERLEAF_EMAIL_SMTP_PORT: 587 | ||
# OVERLEAF_EMAIL_SMTP_SECURE: false | ||
# OVERLEAF_EMAIL_SMTP_USER: | ||
# OVERLEAF_EMAIL_SMTP_PASS: | ||
# OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH: true | ||
# OVERLEAF_EMAIL_SMTP_IGNORE_TLS: false | ||
# OVERLEAF_EMAIL_SMTP_NAME: '127.0.0.1' | ||
# OVERLEAF_EMAIL_SMTP_LOGGER: true | ||
# OVERLEAF_CUSTOM_EMAIL_FOOTER: "This system is run by department x" | ||
|
||
################ | ||
## Server Pro ## | ||
################ | ||
## https://github.com/overleaf/overleaf/wiki/Server-Pro:-sandboxed-compiles | ||
|
||
# SANDBOXED_COMPILES: 'true' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
\documentclass{article} | ||
\usepackage{asypictureB} % Include asypictureB package | ||
|
||
\begin{document} | ||
|
||
\title{LaTeX Document with Asymptote Graphic} | ||
\author{Your Name} | ||
\date{\today} | ||
\maketitle | ||
|
||
\section{Introduction} | ||
|
||
This is an example of including an Asymptote graphic within a LaTeX document using the \texttt{asypictureB} package. Asymptote allows for powerful vector graphic rendering, making it a great tool for illustrations and figures in technical documents. | ||
|
||
\begin{asypicture}{width=5cm} | ||
// Global Asymptote definitions can be put here. | ||
settings.prc=true; | ||
import three; | ||
usepackage("bm"); | ||
texpreamble("\def\V#1{\bm{#1}}"); | ||
// One can globally override the default toolbar settings here: | ||
// settings.toolbar=true; | ||
|
||
size(4cm,0); | ||
pen colour1=red; | ||
pen colour2=green; | ||
|
||
pair z0=(0,0); | ||
pair z1=(-1,0); | ||
pair z2=(1,0); | ||
real r=1.5; | ||
path c1=circle(z1,r); | ||
path c2=circle(z2,r); | ||
fill(c1,colour1); | ||
fill(c2,colour2); | ||
|
||
picture intersection=new picture; | ||
fill(intersection,c1,colour1+colour2); | ||
clip(intersection,c2); | ||
|
||
add(intersection); | ||
|
||
draw(c1); | ||
draw(c2); | ||
|
||
//draw("$\A$",box,z1); // Requires [inline] package option. | ||
//draw(Label("$\B$","$B$"),box,z2); // Requires [inline] package option. | ||
draw("$A$",box,z1); | ||
draw("$\V{B}$",box,z2); | ||
|
||
pair z=(0,-2); | ||
real m=3; | ||
margin BigMargin=Margin(0,m*dot(unit(z1-z),unit(z0-z))); | ||
|
||
draw(Label("$A\cap B$",0),conj(z)--z0,Arrow,BigMargin); | ||
draw(Label("$A\cup B$",0),z--z0,Arrow,BigMargin); | ||
draw(z--z1,Arrow,Margin(0,m)); | ||
draw(z--z2,Arrow,Margin(0,m)); | ||
|
||
shipout(bbox(0.25cm)); | ||
\end{asypicture} | ||
|
||
\section{Asymptote Graphic Example} | ||
|
||
Below is an Asymptote graphic generated within the document: | ||
|
||
\begin{asypicture}{width=5cm} | ||
// Begin Asymptote code | ||
import graph; | ||
|
||
size(5cm); | ||
draw((0,0)--(2,2), blue+linewidth(1)); | ||
draw((0,2)--(2,0), red+linewidth(1)); | ||
|
||
label("$A$", (0,0), SW); | ||
label("$B$", (2,2), NE); | ||
label("$C$", (0,2), NW); | ||
label("$D$", (2,0), SE); | ||
|
||
draw((0,0)..(1,1.5)..(2,2), green+linewidth(0.8)); | ||
\end{asypicture} | ||
|
||
\section{Conclusion} | ||
|
||
This document shows how to use the \texttt{asypictureB} package to include Asymptote graphics within a LaTeX document. This technique can be useful for including high-quality, scalable graphics in your document, particularly for complex diagrams and plots. | ||
|
||
\end{document} |
Oops, something went wrong.