All Projects → vungocbinh2009 → pytexexam

vungocbinh2009 / pytexexam

Licence: Apache-2.0 license
A simple python package to create latex exam in python

Programming Languages

python
139335 projects - #7 most used programming language
TeX
3793 projects
shell
77523 projects

Projects that are alternatives of or similar to pytexexam

datascience-exam
Repo supporting data science team interview exams.
Stars: ✭ 17 (-37.04%)
Mutual labels:  exam
magento2-dev-plus-exam
📚Magento 2 Certified Professional Developer Plus Exam
Stars: ✭ 79 (+192.59%)
Mutual labels:  exam
I-need-help
哇要考试了,还没预习呢,各位有资料不(北京大学软件与微电子)
Stars: ✭ 15 (-44.44%)
Mutual labels:  exam
CKA-Exercises
A set of curated exercises to help prepare you for the Certified Kubernetes Administrator Exam by the Cloud Native Computing Foundation
Stars: ✭ 51 (+88.89%)
Mutual labels:  exam
Azure-70-533-Practice-Test
(RETIRED) Azure 70-533 Certification Practice Test
Stars: ✭ 32 (+18.52%)
Mutual labels:  exam
cissp
CISSP Study Materials PDF and Web Copy for 2021
Stars: ✭ 24 (-11.11%)
Mutual labels:  exam
cehv9
CEHv9 - Practice Exam Questions with Answers
Stars: ✭ 55 (+103.7%)
Mutual labels:  exam
Linkedin Skill Assessments Quizzes
Full reference of LinkedIn answers 2021 for skill assessments, LinkedIn test, questions and answers (aws-lambda, rest-api, javascript, react, git, html, jquery, mongodb, java, Go, python, machine-learning, power-point) linkedin excel test lösungen, linkedin machine learning test
Stars: ✭ 7,014 (+25877.78%)
Mutual labels:  exam
schsrch
Simple and intuitive CIE search engine
Stars: ✭ 35 (+29.63%)
Mutual labels:  exam
cissp-mind-map
CISSP mind map, 8 domains, 2020 edition, OSG/AIO eighth edition, 8th
Stars: ✭ 31 (+14.81%)
Mutual labels:  exam
OCA-Java-SE-7-Programmer-I
Exercises of the OCA Java SE 7 Programmer I Study Guide (Exam 1Z0-803)
Stars: ✭ 43 (+59.26%)
Mutual labels:  exam
cka-exam-prep
Certified Kubernetes Administrator (CKA) Exam Preparation
Stars: ✭ 67 (+148.15%)
Mutual labels:  exam
COA
Openstack Foundation Openstack Certified Administrator exam Preparation
Stars: ✭ 41 (+51.85%)
Mutual labels:  exam
node-certification
Strongloop Node.js Certification Exam work out
Stars: ✭ 59 (+118.52%)
Mutual labels:  exam
Kubernetes Certified Administrator
Online resources that will help you prepare for taking the CNCF CKA 2020 "Kubernetes Certified Administrator" Certification exam. with time, This is not likely the comprehensive up to date list - please make a pull request if there something that should be added here.
Stars: ✭ 3,438 (+12633.33%)
Mutual labels:  exam
learnzf2
Learn ZF2: Learning Zend Framework 2 by Example
Stars: ✭ 35 (+29.63%)
Mutual labels:  exam
cyberops
Cisco Press CCNA Cyber Ops Books and Video Courses supplemental information and additional study materials.
Stars: ✭ 18 (-33.33%)
Mutual labels:  exam
examrank-02-03-04-05-06
exam project 2020
Stars: ✭ 195 (+622.22%)
Mutual labels:  exam
Oscp Exam Report Template Markdown
📙 Markdown Templates for Offensive Security OSCP, OSWE, OSCE, OSEE, OSWP exam report
Stars: ✭ 2,066 (+7551.85%)
Mutual labels:  exam
Azure-AZ-500-Study-Guide
Study Guide for the Microsoft Azure Security Technologies Exam
Stars: ✭ 84 (+211.11%)
Mutual labels:  exam

pytexexam

A simple library for writing and printing exam in Python.

Downloads Downloads Downloads

Run on Repl.it

Installation

pip install pytexexam

How to use

import pytexexam.latexexamutil as util
from pytexexam import LatexExamBuilder, ExamExportType

# Create exam builder
builder = LatexExamBuilder()
# You can add preamble here
builder.preamble = util.ams_math_package()
# Exam header
builder.header = "This is a simple header"
# Exam footer
builder.footer = "This is a simple footer"
# You can export exam in tex file or pdf file (need Latex installed)
builder.export_type = ExamExportType.PDF
# Add question
builder.add_question(
    question="This is a simple question",
    # Answers: This package auto add A, B, C, D ... in answers
    answer=["Answer 1", "Answer 2", "Answer 3", "Answer 4"],
    # True answer key
    true_answer="A",
    # present answer in multiple column
    answer_column=4,
    # Solution of this question
    solution="This is solution for this question",
)

# Creste exam, answer and solution!
builder.create_exam("exam1")
builder.create_answer("answer1")
builder.create_solution("solution1")

Documentation

If you want to see all the functions included in this library, you can find it here

Note.

If you use Pycharm, you can enable language injection to get Latex support inside Python script

  1. Install TeXiFy IDEA.
  2. Go to Settings -> Editor -> Language Injection and add new rule:
    • Language ID: Latex (.tex) sources files
    • Places patterns: + pyLiteralExpression()
  3. Enable it!. Now you get Latex syntax hightlighting inside python string! Yayyy!

(You can also add other pattern, using method in this file: https://github.com/JetBrains/intellij-community/blob/master/python/src/com/jetbrains/python/patterns/PythonPatterns.java)

Contribution.

Contribution are welcome. Create a pull request.

Buy me a coffee.

If you find this project useful, you can buy me coffee through Flattr Flattr this git repo

License

Apache License, Version 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].