Coder Social home page Coder Social logo

business-card's Introduction

Business Card

Example:

How this business card was designed, is explained in this blog post.

Requirements

It is also possible to use this Docker container:

docker run \
    --rm -it \
    -v `pwd`:/tmp/src accupara/business-cards \
    /bin/bash -c 'cd /tmp/src/src ; xelatex front.tex;'

Installing Dependancies on Ubuntu or Debian

sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra

Building Documents

Build the front and back sides with XeLaTeX:

xelatex src/front.tex
xelatex src/back.tex

SVG Files

LaTeX is not equipped to handle SVG files directly. A conversion to a PDF file is needed. This can be done using an external tool such as Inkscape:

inkscape --without-gui --export-area-drawing --file=logo.svg --export-pdf=logo.pdf

License

GNU GPLv3. See LICENSE file.

© 2017 Olivier Pieters

business-card's People

Contributors

jacobmischka avatar opieters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

business-card's Issues

Docker image to create business cards

Hi Olivier,

I love what you've created here and I thought I'd help in the best way I know: Make it easier for others to use your source.

I took the instructions you've written to set up LaTeX, fonts, etc. and made a Dockerfile and an image on Docker Hub.

Usage:

docker run \
    --rm -it \
    -v `pwd`:/tmp/src accupara/business-cards \
    /bin/bash -c 'cd /tmp/src/src ; xelatex front.tex'

Hope this helps,
-Yuvraaj

SVG import.

First I want to say nice work!

Second, having ensured all packages are installed on my system, the front builds perfectly, but building the back (with xelatex) gives an error about not finding the logo. I've used this on the github source and get the same failure. How do you import the logo.svg?

Unreadable QR code

I recently tried to include a vcard, too, and found your example. I basically ran into the same problem described here: Problem creating a proper qrcode with vcard info. When running your examples, I saw that this is also the case here:

\node[anchor=south] at (helper qr)
{\qrcode[level=M,height=\qrheight]{BEGIN:VCARD
VERSION:3.0
N:John;Doe;;Mr.
FN:Mr. John Doe
TITLE:CEO Doe Enterprises
ORG:Doe Enterprises
PHOTO;VALUE=URI;TYPE=JPEG:https://johndoe.com/path/to/jpeg/images.jpeg
TEL;TYPE=MOBILE:+1 781 555 1212
EMAIL:[email protected]
URL:https://johndoe.com
REV:2017-29-01T13:52:43Z
BDAY:19880310
ADR;TYPE=WORK,PREF:;;2 Some Avenue;Anytown;SF;11111;USA
END:VCARD}};

I suggest you also switch to:

\qrcode[level=M,height=\qrheight]{BEGIN:VCARD\?VERSION:3.0\?N:John;Doe;;Mr.\? <more> \?END:VCARD}

Font Awesome not found

After forking and making some changes, I cannot get my card to compile. The following error appears which makes me think that there is a .sty file that should be included:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "FontAwesome" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.45 \newfontfamily{\FA}{FontAwesome}

The consensus here is that the file doesn't need to be in the same directory and that normally TeX will do the right thing. However, because I am using BasicTex, is it possible that not everything I need is included?

If I explicitly include a copy of the file, the error referenced in the title of that issue results and my code still produces an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.