qpic_diagram_for_bloq#

Generate latex diagram for bloq by invoking qpic. Assumes qpic is already installed.

Outputs one of the following files, based on output_type:

  • base_file_path + ‘.qpic’ - Obtained via get_qpic_data(bloq)

  • base_file_path + ‘.tex’ - Obtained via qpic -f base_file_path.qpic

  • base_file_path + ‘.pdf’ - Uses pdflatex tool to convert tex to pdf. See https://tug.org/applications/pdftex/ for more details on how to install pdflatex.

  • base_file_path + ‘.png’ - Uses convert tool to convert pdf to png. See https://imagemagick.org/ for more details on how to install convert.

bloq

The bloq to generate a qpic diagram for

base_file_path

Prefix of the path where output file is saved. The output file corresponds to f’{base_file_path}.{output_type}’

output_type

Format of the diagram generated using qpic. Supported output types are one of [‘qpic’, ‘tex’, ‘pdf’, ‘png’]