#!/bin/bash # -*- coding: utf-8 -*- # Timestamp: 2026-02-08 # File: scripts/shell/compile_content.sh ################################################################################ # Content/preview LaTeX compilation # Compiles a .tex file to PDF using latexmk (no bibliography processing) ################################################################################ set -e set -o pipefail # Defaults TEX_FILE="" OUTPUT_DIR="" JOB_NAME="content" COLOR_MODE="light" PREVIEW_DIR="" TIMEOUT=60 KEEP_AUX=false QUIET=false # Colors GRAY='\033[0;90m' GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' log_info() { [ "$QUIET" = true ] || echo -e "${GRAY}INFO: $1${NC}"; } log_success() { echo -e "${GREEN}SUCC: $1${NC}"; } log_error() { echo -e "${RED}ERRO: $1${NC}" >&2; } show_usage() { cat <