-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·76 lines (64 loc) · 2.06 KB
/
setup.sh
File metadata and controls
executable file
·76 lines (64 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Interactive LaTeX Workshop Setup Script
echo "🔧 Setting up Interactive LaTeX Workshop..."
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is required but not installed."
echo "Please install Python 3 and try again."
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "📦 Creating Python virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source venv/bin/activate
# Install Python dependencies
echo "📥 Installing Python dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
# Check LaTeX installation
echo "🔍 Checking LaTeX installation..."
if command -v pdflatex &> /dev/null; then
echo "✅ pdflatex found"
else
echo "❌ pdflatex not found"
echo "Please install a LaTeX distribution:"
echo " macOS: brew install --cask mactex"
echo " Linux: sudo apt-get install texlive-full"
echo " Windows: Install MiKTeX or TeX Live"
fi
# Check PDF conversion tools
if command -v pdftoppm &> /dev/null; then
echo "✅ pdftoppm found (from poppler)"
elif command -v convert &> /dev/null; then
echo "✅ ImageMagick convert found"
else
echo "⚠️ No PDF conversion tool found"
echo "Install one of the following:"
echo " macOS: brew install poppler"
echo " Linux: sudo apt-get install poppler-utils"
echo " Or install ImageMagick"
fi
# Check bibliography tools
if command -v biber &> /dev/null; then
echo "✅ biber found"
else
echo "ℹ️ biber not found (optional for bibliography)"
fi
if command -v bibtex &> /dev/null; then
echo "✅ bibtex found"
else
echo "ℹ️ bibtex not found (optional for bibliography)"
fi
echo ""
echo "🎉 Setup complete!"
echo ""
echo "To start the workshop:"
echo " 1. Run: ./start_backend.sh (in one terminal)"
echo " 2. Run: ./start_frontend.sh (in another terminal)"
echo " 3. Open: http://127.0.0.1:3000"
echo ""
echo "Or use: ./run_workshop.sh to start both servers"